-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Closed
Labels
Feature:AlertingFeature:Alerting/RulesFrameworkIssues related to the Alerting Rules FrameworkIssues related to the Alerting Rules FrameworkTeam:ResponseOpsPlatform ResponseOps team (formerly the Cases and Alerting teams) t//Platform ResponseOps team (formerly the Cases and Alerting teams) t//
Description
Summary
Users should be able to get information on a specific maintenance window by ID.
Implementation Notes
- The existing maintenance window client should be used.
x-pack/platform/plugins/shared/alerting/server/maintenance_window_client/maintenance_window_client.ts
- The route will call a
transformfunction that converts fromCreateMaintenanceWindowRequestintoCreateMaintenanceWindowParams.
DoD
- A POST maintenance window API is implemented.
- Request validation is implemented.
- The API is properly documented.
- The schema below should be followed for the requests:
Request
title: string;
scope?: {
query: {
kql?: string;
}
}
// TBD recurring schedule
duration: string; // 30m, 1h, 2m, etc
start: string; // includes timezone
repeating?: { // for clarity?
end?: string;
every?: string; // 1d, 2w, etc
onWeekDay?: string[];
onMonthDay?: number[];
onMonth?: string[];
}
Response
title: string;
created_by?: string;
updated_by?: string;
created_at: string;
updated_at: string;
status: 'running' | 'upcoming' | 'upcoming' | 'archived';
scope?: {
query: {
kql?: string;
}
}
// TBD recurring schedule
duration: string; // 30m, 1h, 2m, etc
start: string; // includes timezone
repeating?: { // for clarity?
end?: string;
every?: string; // 1d, 2w, etc
onWeekDay?: string[];
onMonthDay?: number[];
onMonth?: string[];
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Feature:AlertingFeature:Alerting/RulesFrameworkIssues related to the Alerting Rules FrameworkIssues related to the Alerting Rules FrameworkTeam:ResponseOpsPlatform ResponseOps team (formerly the Cases and Alerting teams) t//Platform ResponseOps team (formerly the Cases and Alerting teams) t//