Maintenance Window
A MaintenanceWindow is a resource snoozing Alerts during maintenance time.
Package : spaceone.api.monitoring.v1
MaintenanceWindow
MaintenanceWindow Methods:
Method | Request | Response |
---|---|---|
create
POST /monitoring/v1/maintenance-windows
Creates a new MaintenanceWindow. When creating a MaintenanceWindow, you can set the title and maintenance schedule of the MaintenanceWindow. From the
start_time
to theend_time
specified by the schedule set in this method, alerts in the Projects linked with the MaintenanceWindow are ceased.
Type | Message |
---|---|
Request | |
Response |
update
PUT /monitoring/v1/maintenance-window/{maintenance_window_id}
Updates a specific MaintenanceWindow. You can make changes in MaintenanceWindow settings including, the
title
and the schedule.
Type | Message |
---|---|
Request | |
Response |
close
PUT /monitoring/v1/maintenance-window/{maintenance_window_id}/close
Closes a MaintenanceWindow by changing the state of the MaintenanceWindow to
CLOSED
when the maintenance is completed. As the MaintenanceWindow is not deleted but closed, the maintenance history remains undeleted.
Type | Message |
---|---|
Request | |
Response |
get
GET /monitoring/v1/maintenance-window/{maintenance_window_id}
Gets a specific MaintenanceWindow. Prints detailed information about the MaintenanceWindow, including the title and the schedule.
Type | Message |
---|---|
Request | |
Response |
list
GET /monitoring/v1/maintenance-windows
POST /monitoring/v1/maintenance-windows/search
Gets a list of all MaintenanceWindows. You can use a query to get a filtered list of MaintenanceWindows.
Type | Message |
---|---|
Request | |
Response |
stat
POST /monitoring/v1/maintenance-windows/stat
Type | Message |
---|---|
Request | |
Response |
Message
CreateMaintenanceWindowRequest
Field | Type | Required | Description |
---|---|---|---|
title | string | ✔ | |
projects | list of string | ✔ | |
start_time | string | ✔ | |
end_time | string | ✔ | |
tags | ✘ | ||
domain_id | string | ✔ |
GetMaintenanceWindowRequest
Field | Type | Required | Description |
---|---|---|---|
maintenance_window_id | string | ✔ | |
domain_id | string | ✔ | |
only | list of string | ✘ |
MaintenanceWindowInfo
Field | Type | Description |
---|---|---|
maintenance_window_id | string | |
title | string | |
state |
| |
start_time | string | |
end_time | string | |
tags | ||
projects | list of string | |
domain_id | string | |
created_by | string | |
created_at | string | |
updated_at | string | |
closed_at | string |
MaintenanceWindowQuery
Field | Type | Required | Description |
---|---|---|---|
query | ✘ | ||
maintenance_window_id | string | ✘ | |
title | string | ✘ | |
state |
| ✘ | |
project_id | string | ✘ | |
created_by | string | ✘ | |
domain_id | string | ✔ |
MaintenanceWindowRequest
Field | Type | Required | Description |
---|---|---|---|
maintenance_window_id | string | ✔ | |
domain_id | string | ✔ |
MaintenanceWindowStatQuery
Field | Type | Required | Description |
---|---|---|---|
query | ✔ | ||
domain_id | string | ✔ |
MaintenanceWindowsInfo
Field | Type | Description |
---|---|---|
results | ||
total_count |
UpdateMaintenanceWindowRequest
Field | Type | Required | Description |
---|---|---|---|
maintenance_window_id | string | ✔ | |
title | string | ✘ | |
projects | list of string | ✘ | |
start_time | string | ✘ | |
end_time | string | ✘ | |
tags | ✘ | ||
domain_id | string | ✔ |
Last updated