cloudforet-apis
  • README
  • content
    • en
      • Cloudforet API Documentation
      • board
        • _index
        • v1
          • Board
          • Post
          • v1
      • config
        • _index
        • v1
          • DomainConfig
          • PublicConfig
          • UserConfig
          • WorkspaceConfig
          • v1
      • core
        • _index
        • v1
          • Handler
          • Query
          • ServerInfo
          • v1
        • v2
          • Handler
          • Plugin
          • Query
          • v2
      • cost_analysis
        • _index
        • plugin
          • Cost
          • DataSource
          • Job
          • plugin
        • v1
          • Budget
          • BudgetUsage
          • Cost
          • CostQuerySet
          • CostReport
          • CostReportConfig
          • CostReportData
          • CustomWidget
          • DataSource
          • DataSourceAccount
          • DataSourceRule
          • ExchangeRate
          • Job
          • JobTask
          • PublicDashboard
          • Schedule
          • UnifiedCost
          • UserDashboard
          • v1
      • dashboard
        • _index
        • v1
          • CustomWidget
          • Dashboard
          • DomainDashboard
          • PrivateDashboard
          • PrivateDataTable
          • PrivateFolder
          • PrivateWidget
          • ProjectDashboard
          • PublicDashboard
          • PublicDataTable
          • PublicFolder
          • PublicWidget
          • v1
      • file_manager
        • _index
        • v1
          • File
          • PublicFile
          • v1
      • identity
        • _index
        • plugin
          • AccountCollector
          • Auth
          • ExternalAuth
          • plugin
        • v1
          • ApiKey
          • Authorization
          • Domain
          • DomainOwner
          • Endpoint
          • Policy
          • Project
          • ProjectGroup
          • Provider
          • Role
          • RoleBinding
          • ServiceAccount
          • Token
          • User
          • v1
        • v2
          • Agent
          • ApiKey
          • App
          • Authorization
          • Domain
          • Endpoint
          • ExternalAuth
          • Job
          • Package
          • Policy
          • Project
          • ProjectGroup
          • Provider
          • Role
          • RoleBinding
          • Schema
          • ServiceAccount
          • System
          • Token
          • TrustedAccount
          • TrustedServiceAccount
          • User
          • UserGroup
          • UserProfile
          • Workspace
          • WorkspaceGroup
          • WorkspaceGroupDetails
          • WorkspaceGroupUser
          • WorkspaceUser
          • v2
      • inventory
        • _index
        • plugin
          • Collector
          • Job
          • plugin
        • v1
          • ChangeHistory
          • CloudService
          • CloudServiceQuerySet
          • CloudServiceReport
          • CloudServiceStats
          • CloudServiceType
          • Collector
          • CollectorRule
          • Job
          • JobTask
          • Metric
          • MetricData
          • MetricExample
          • Namespace
          • Note
          • Region
          • ResourceGroup
          • v1
        • v2
          • Region
          • v2
      • monitoring
        • _index
        • plugin
          • DataSource
          • Event
          • Log
          • Metric
          • Webhook
          • plugin
        • v1
          • Alert
          • DataSource
          • EscalationPolicy
          • Event
          • EventRule
          • Log
          • MaintenanceWindow
          • Metric
          • Note
          • ProjectAlertConfig
          • Webhook
          • v1
      • mzc_service_api
        • _index
        • v1
          • Contract
          • Offering
          • Organization
          • v1
      • notification
        • _index
        • plugin
          • Notification
          • Protocol
          • plugin
        • v1
          • Notification
          • NotificationUsage
          • ProjectChannel
          • Protocol
          • Quota
          • UserChannel
          • v1
      • opsflow
        • _index
        • v1
          • Comment
          • Event
          • Task
          • TaskCategory
          • TaskType
          • v1
      • plugin
        • _index
        • v1
          • Plugin
          • Supervisor
          • v1
      • repository
        • _index
        • v1
          • DashboardTemplate
          • Plugin
          • Policy
          • Repository
          • Schema
          • v1
        • v2
          • Common
          • Provider
          • RemoteRepository
          • Schema
          • v2
      • sample
        • _index
        • v1
          • Helloworld
          • v1
      • search
        • _index
        • v1
          • Resource
          • v1
      • secret
        • _index
        • v1
          • Secret
          • SecretGroup
          • TrustedSecret
          • UserSecret
          • v1
      • statistics
        • _index
        • plugin
          • Storage
          • plugin
        • v1
          • History
          • Resource
          • Schedule
          • Storage
          • v1
Powered by GitBook
On this page
  • MaintenanceWindow
  • create
  • update
  • close
  • get
  • list
  • stat
  • Message
  • CreateMaintenanceWindowRequest
  • GetMaintenanceWindowRequest
  • MaintenanceWindowInfo
  • MaintenanceWindowQuery
  • MaintenanceWindowRequest
  • MaintenanceWindowStatQuery
  • MaintenanceWindowsInfo
  • UpdateMaintenanceWindowRequest
  1. content
  2. en
  3. monitoring
  4. v1

MaintenanceWindow

A MaintenanceWindow is a resource snoozing Alerts during maintenance time.

Package : spaceone.api.monitoring.v1

MaintenanceWindow

MaintenanceWindow Methods:

Method
Request
Response

create

Creates a new MaintenanceWindow. When creating a MaintenanceWindow, you can set the title and maintenance schedule of the MaintenanceWindow. From the start_time to the end_time specified by the schedule set in this method, alerts in the Projects linked with the MaintenanceWindow are ceased.

POST /monitoring/v1/maintenance-window/create

{{< tabs " create " >}}

{{< tab "Request Example" >}}

  • title (string) Required

  • projects (string) Repeated Required

  • start_time (string) Required

  • end_time (string) Required

  • domain_id (string) Required

  • tags (Struct)

{{< highlight json >}} { "title": "The dev server is under regular maintenance.", "projects": ["project-123456789012"], "start_time": "2022-01-01T09:45:00.000Z", "end_time": "2022-01-01T10:45:00.000Z", "domain_id": "domain-123456789012" } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

  • maintenance_window_id (string) Required

  • title (string) Required

  • state (MaintenanceWindowState) Required

  • start_time (string) Required

  • end_time (string) Required

  • tags (Struct) Required

  • projects (string) Repeated Required

  • domain_id (string) Required

  • created_by (string) Required

  • created_at (string) Required

  • updated_at (string) Required

  • closed_at (string) Required

{{< highlight json >}} { "maintenance_window_id": "mw-123456789012", "title": "The dev server is under regular maintenance.", "state": "OPEN", "start_time": "2022-01-01T09:45:00.000Z", "end_time": "2022-01-01T10:45:00.000Z", "tags": {}, "projects": [ "project-123456789012" ], "domain_id": "domain-123456789012", "created_by": "user1@email.com", "created_at": "2022-06-02T09:46:49.196Z", "updated_at": "2022-06-02T09:46:49.196Z" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

update

Updates a specific MaintenanceWindow. You can make changes in MaintenanceWindow settings including, the title and the schedule.

POST /monitoring/v1/maintenance-window/update

{{< tabs " update " >}}

{{< tab "Request Example" >}}

  • maintenance_window_id (string) Required

  • domain_id (string) Required

  • title (string)

  • projects (string) Repeated

  • start_time (string)

  • end_time (string)

  • tags (Struct)

{{< highlight json >}} { "maintenance_window_id": "mw-123456789012", "title": "The dev server is under regular maintenance.", "projects": ["project-123456789012"], "start_time": "2022-01-03T00:00:00.000Z", "end_time": "2022-01-03T01:00:00.000Z", "domain_id": "domain-123456789012" } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

  • maintenance_window_id (string) Required

  • title (string) Required

  • state (MaintenanceWindowState) Required

  • start_time (string) Required

  • end_time (string) Required

  • tags (Struct) Required

  • projects (string) Repeated Required

  • domain_id (string) Required

  • created_by (string) Required

  • created_at (string) Required

  • updated_at (string) Required

  • closed_at (string) Required

{{< highlight json >}} { "maintenance_window_id": "mw-123456789012", "title": "The dev server is under regular maintenance.", "state": "OPEN", "start_time": "2022-01-01T09:45:00.000Z", "end_time": "2022-01-01T10:45:00.000Z", "tags": {}, "projects": [ "project-123456789012" ], "domain_id": "domain-123456789012", "created_by": "user1@email.com", "created_at": "2022-06-02T09:46:49.196Z", "updated_at": "2022-06-02T09:46:49.196Z" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

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.

POST /monitoring/v1/maintenance-window/close

{{< tabs " close " >}}

{{< tab "Request Example" >}}

  • maintenance_window_id (string) Required

  • domain_id (string) Required

{{< highlight json >}} { "maintenance_window_id": "mw-123456789012", "domain_id": "domain-123456789012" } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

  • maintenance_window_id (string) Required

  • title (string) Required

  • state (MaintenanceWindowState) Required

  • start_time (string) Required

  • end_time (string) Required

  • tags (Struct) Required

  • projects (string) Repeated Required

  • domain_id (string) Required

  • created_by (string) Required

  • created_at (string) Required

  • updated_at (string) Required

  • closed_at (string) Required

{{< highlight json >}} { "maintenance_window_id": "mw-123456789012", "title": "The dev server is under regular maintenance.", "state": "OPEN", "start_time": "2022-01-01T09:45:00.000Z", "end_time": "2022-01-01T10:45:00.000Z", "tags": {}, "projects": [ "project-123456789012" ], "domain_id": "domain-123456789012", "created_by": "user1@email.com", "created_at": "2022-06-02T09:46:49.196Z", "updated_at": "2022-06-02T09:46:49.196Z" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

get

Gets a specific MaintenanceWindow. Prints detailed information about the MaintenanceWindow, including the title and the schedule.

POST /monitoring/v1/maintenance-window/get

{{< tabs " get " >}}

{{< tab "Request Example" >}}

  • maintenance_window_id (string) Required

  • domain_id (string) Required

  • only (string) Repeated

{{< highlight json >}} { "maintenance_window_id": "mw-123456789012", "domain_id": "domain-123456789012" } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

  • maintenance_window_id (string) Required

  • title (string) Required

  • state (MaintenanceWindowState) Required

  • start_time (string) Required

  • end_time (string) Required

  • tags (Struct) Required

  • projects (string) Repeated Required

  • domain_id (string) Required

  • created_by (string) Required

  • created_at (string) Required

  • updated_at (string) Required

  • closed_at (string) Required

{{< highlight json >}} { "maintenance_window_id": "mw-123456789012", "title": "The dev server is under regular maintenance.", "state": "OPEN", "start_time": "2022-01-01T09:45:00.000Z", "end_time": "2022-01-01T10:45:00.000Z", "tags": {}, "projects": [ "project-123456789012" ], "domain_id": "domain-123456789012", "created_by": "user1@email.com", "created_at": "2022-06-02T09:46:49.196Z", "updated_at": "2022-06-02T09:46:49.196Z" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

list

Gets a list of all MaintenanceWindows. You can use a query to get a filtered list of MaintenanceWindows.

POST /monitoring/v1/maintenance-window/list

{{< tabs " list " >}}

{{< tab "Request Example" >}}

  • domain_id (string) Required

  • query (Query)

  • maintenance_window_id (string)

  • title (string)

  • state (MaintenanceWindowState)

  • project_id (string)

  • created_by (string)

{{< highlight json >}} { "query": {}, "domain_id": "domain-123456789012" } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

  • results (MaintenanceWindowInfo) Repeated Required

  • total_count (int32) Required

{{< highlight json >}} { "results": [ { "maintenance_window_id": "mw-123456789012", "title": "The dev server is under regular maintenance.", "state": "OPEN", "start_time": "2022-06-03T00:00:00.000Z", "end_time": "2022-06-03T01:00:00.000Z", "tags": {}, "projects": [ "project-123456789012" ], "domain_id": "domain-123456789012", "created_by": "user1@email.com", "created_at": "2022-01-01T09:59:01.966Z", "updated_at": "2022-01-01T09:59:01.966Z" }, { "maintenance_window_id": "mw-987654321098", "title": "The prd server is under regular maintenance.", "state": "OPEN", "start_time": "2022-06-03T00:00:00.000Z", "end_time": "2022-06-03T01:00:00.000Z", "tags": {}, "projects": [ "project-123456789012" ], "domain_id": "domain-123456789012", "created_by": "user2@email.com", "created_at": "2022-01-02T09:57:28.999Z", "updated_at": "2022-01-02T09:57:28.999Z" } ], "total_count": 50 } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

stat

POST /monitoring/v1/maintenance-window/stat

Message

CreateMaintenanceWindowRequest

  • title (string) Required

  • projects (string) Repeated Required

  • start_time (string) Required

  • end_time (string) Required

  • domain_id (string) Required

  • tags (Struct)

GetMaintenanceWindowRequest

  • maintenance_window_id (string) Required

  • domain_id (string) Required

  • only (string) Repeated

MaintenanceWindowInfo

  • maintenance_window_id (string) Required

  • title (string) Required

  • state (MaintenanceWindowState) Required

  • start_time (string) Required

  • end_time (string) Required

  • tags (Struct) Required

  • projects (string) Repeated Required

  • domain_id (string) Required

  • created_by (string) Required

  • created_at (string) Required

  • updated_at (string) Required

  • closed_at (string) Required

MaintenanceWindowQuery

  • domain_id (string) Required

  • query (Query)

  • maintenance_window_id (string)

  • title (string)

  • state (MaintenanceWindowState)

  • project_id (string)

  • created_by (string)

MaintenanceWindowRequest

  • maintenance_window_id (string) Required

  • domain_id (string) Required

MaintenanceWindowStatQuery

  • query (StatisticsQuery) Required

  • domain_id (string) Required

MaintenanceWindowsInfo

  • results (MaintenanceWindowInfo) Repeated Required

  • total_count (int32) Required

UpdateMaintenanceWindowRequest

  • maintenance_window_id (string) Required

  • domain_id (string) Required

  • title (string)

  • projects (string) Repeated

  • start_time (string)

  • end_time (string)

  • tags (Struct)

PreviousLogNextMetric

Last updated 1 year ago

CreateMaintenanceWindowRequest
UpdateMaintenanceWindowRequest
MaintenanceWindowRequest
GetMaintenanceWindowRequest
MaintenanceWindowQuery
MaintenanceWindowInfo
MaintenanceWindowInfo
MaintenanceWindowInfo
MaintenanceWindowInfo
MaintenanceWindowsInfo
create
CreateMaintenanceWindowRequest
MaintenanceWindowInfo
update
UpdateMaintenanceWindowRequest
MaintenanceWindowInfo
close
MaintenanceWindowRequest
MaintenanceWindowInfo
get
GetMaintenanceWindowRequest
MaintenanceWindowInfo
list
MaintenanceWindowQuery
MaintenanceWindowsInfo
stat
MaintenanceWindowStatQuery
Struct