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
  • ProjectAlertConfig
  • create
  • update
  • delete
  • get
  • list
  • stat
  • Message
  • AlertOptions
  • CreateProjectAlertConfigRequest
  • ProjectAlertConfigInfo
  • ProjectAlertConfigQuery
  • ProjectAlertConfigRequest
  • ProjectAlertConfigStatQuery
  • ProjectAlertConfigsInfo
  • UpdateProjectAlertConfigRequest
  1. content
  2. en
  3. monitoring
  4. v1

ProjectAlertConfig

A ProjectAlertConfig is a resource to set the alert policies for a Project.

Package : spaceone.api.monitoring.v1

ProjectAlertConfig

ProjectAlertConfig Methods:

Method
Request
Response

create

Creates a new ProjectAlertConfig in a specific Project. When creating a ProjectAlertConfig, validation of the Project is preceded. After the validation is done, ProjectAlertConfig enables EscalationPolicy to be set in the Project, or enables enum type recovery_mode and notification_urgency to be set through the options parameter. The parameter recovery_mode is for changing the state of the Alert to resolved if the external monitoring solution sends the resolved Alert. The parameter notification_urgency is used to choose whether you will get all Alerts or only urgent ones.

POST /monitoring/v1/project-alert-config/create

{{< tabs " create " >}}

{{< tab "Request Example" >}}

  • project_id (string) Required

  • escalation_policy_id (string)

  • options (AlertOptions)

{{< highlight json >}} { "project_id": "project-dee2a81d4859", "escalation_policy_id": "ep-b441abe04ca9", "options": { "notification_urgency": "ALL", "recovery_mode": "AUTO" }, "domain_id": "domain-58010aa2e451" } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

  • project_id (string) Required

  • options (AlertOptions) Required

  • escalation_policy_info (EscalationPolicyInfo) Required

  • domain_id (string) Required

  • workspace_id (string) Required

  • created_at (string) Required

{{< highlight json >}} { "project_id": "project-dee2a81d4859", "options": { "notification_urgency": "ALL", "recovery_mode": "AUTO" }, "escalation_policy_info": { "escalation_policy_id": "ep-b441abe04ca9", "name": "Global New Policy" }, "domain_id": "domain-58010aa2e451", "created_at": "2022-06-27T05:12:22.998Z" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

update

Updates a specific ProjectAlertConfig. You can make changes in ProjectAlertConfig settings, including the EscalationPolicy to apply. You can also change notification_urgency and recovery_mode by modifying the options parameter.

POST /monitoring/v1/project-alert-config/update

{{< tabs " update " >}}

{{< tab "Request Example" >}}

  • project_id (string) Required

  • escalation_policy_id (string)

  • options (AlertOptions)

{{< highlight json >}} { "project_id": "project-dee2a81d4859", "escalation_policy_id": "ep-4ee42a9b2d96", "options": { "notification_urgency": "ALL", "recovery_mode": "MANUAL" }, "domain_id": "domain-58010aa2e451" } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

  • project_id (string) Required

  • options (AlertOptions) Required

  • escalation_policy_info (EscalationPolicyInfo) Required

  • domain_id (string) Required

  • workspace_id (string) Required

  • created_at (string) Required

{{< highlight json >}} { "project_id": "project-dee2a81d4859", "options": { "notification_urgency": "ALL", "recovery_mode": "AUTO" }, "escalation_policy_info": { "escalation_policy_id": "ep-b441abe04ca9", "name": "Global New Policy" }, "domain_id": "domain-58010aa2e451", "created_at": "2022-06-27T05:12:22.998Z" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

delete

Deletes a specific ProjectAlertConfig. Deletes alert configuration data in a Project.

POST /monitoring/v1/project-alert-config/delete

{{< tabs " delete " >}}

{{< tab "Request Example" >}}

  • project_id (string) Required

{{< highlight json >}} { "project_id": "project-dee2a81d4859", "domain_id": "domain-58010aa2e451" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

get

Gets a specific ProjectAlertConfig. Prints detailed information about the ProjectAlertConfig, including EscalationPolicy, recovery mode, and notification urgency.

POST /monitoring/v1/project-alert-config/get

{{< tabs " get " >}}

{{< tab "Request Example" >}}

  • project_id (string) Required

{{< highlight json >}} { "project_id": "project-dee2a81d4859", "domain_id": "domain-58010aa2e451" } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

  • project_id (string) Required

  • options (AlertOptions) Required

  • escalation_policy_info (EscalationPolicyInfo) Required

  • domain_id (string) Required

  • workspace_id (string) Required

  • created_at (string) Required

{{< highlight json >}} { "project_id": "project-dee2a81d4859", "options": { "notification_urgency": "ALL", "recovery_mode": "AUTO" }, "escalation_policy_info": { "escalation_policy_id": "ep-b441abe04ca9", "name": "Global New Policy" }, "domain_id": "domain-58010aa2e451", "created_at": "2022-06-27T05:12:22.998Z" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

list

Gets a list of all ProjectAlertConfigs from all projects configured in the same domain. You can use a query to get a filtered list of ProjectAlertConfigs.

POST /monitoring/v1/project-alert-config/list

{{< tabs " list " >}}

{{< tab "Request Example" >}}

  • query (Query)

  • project_id (string)

  • escalation_policy_id (string)

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

{{< tab "Response Example" >}}

  • results (ProjectAlertConfigInfo) Repeated Required

  • total_count (int32) Required

{{< highlight json >}} { "results": [ { "project_id": "project-18655561c535", "options": { "notification_urgency": "ALL", "recovery_mode": "MANUAL" }, "escalation_policy_info": { "escalation_policy_id": "ep-4ee42a9b2d96", "name": "HAHA", "is_default": true }, "domain_id": "domain-58010aa2e451", "created_at": "2022-05-17T02:09:19.839Z" }, { "project_id": "project-9074eea97d7e", "options": { "notification_urgency": "ALL", "recovery_mode": "MANUAL" }, "escalation_policy_info": { "escalation_policy_id": "ep-b441abe04ca9", "name": "Global New Policy" }, "domain_id": "domain-58010aa2e451", "created_at": "2021-06-24T02:50:50.535Z" } ], "total_count": 2 } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

stat

POST /monitoring/v1/project-alert-config/stat

Message

AlertOptions

  • notification_urgency (UrgencyOption) Required

  • recovery_mode (RecoveryOption) Required

CreateProjectAlertConfigRequest

  • project_id (string) Required

  • escalation_policy_id (string)

  • options (AlertOptions)

ProjectAlertConfigInfo

  • project_id (string) Required

  • options (AlertOptions) Required

  • escalation_policy_info (EscalationPolicyInfo) Required

  • domain_id (string) Required

  • workspace_id (string) Required

  • created_at (string) Required

ProjectAlertConfigQuery

  • query (Query)

  • project_id (string)

  • escalation_policy_id (string)

ProjectAlertConfigRequest

  • project_id (string) Required

ProjectAlertConfigStatQuery

  • query (StatisticsQuery) Required

ProjectAlertConfigsInfo

  • results (ProjectAlertConfigInfo) Repeated Required

  • total_count (int32) Required

UpdateProjectAlertConfigRequest

  • project_id (string) Required

  • escalation_policy_id (string)

  • options (AlertOptions)

PreviousNoteNextWebhook

Last updated 1 year ago

CreateProjectAlertConfigRequest
UpdateProjectAlertConfigRequest
ProjectAlertConfigRequest
ProjectAlertConfigRequest
ProjectAlertConfigQuery
ProjectAlertConfigInfo
ProjectAlertConfigInfo
ProjectAlertConfigInfo
ProjectAlertConfigsInfo
create
CreateProjectAlertConfigRequest
ProjectAlertConfigInfo
update
UpdateProjectAlertConfigRequest
ProjectAlertConfigInfo
delete
ProjectAlertConfigRequest
Empty
get
ProjectAlertConfigRequest
ProjectAlertConfigInfo
list
ProjectAlertConfigQuery
ProjectAlertConfigsInfo
stat
ProjectAlertConfigStatQuery
Struct