SpaceONE APIs
Latest Version
Latest Version
  • README
  • Board
    • V1
      • Board
      • Post
  • Config
    • V1
      • Domain Config
      • User Config
  • Core
    • V1
      • Handler
      • Query
      • Server Info
  • Cost Analysis
    • Plugin
      • Cost
      • Data Source
      • Job
    • V1
      • Budget
      • Budget Usage
      • Cost
      • Cost Query Set
      • Custom Widget
      • Data Source
      • Data Source Rule
      • Exchange Rate
      • Job
      • Job Task
      • Public Dashboard
      • Schedule
      • User Dashboard
  • Identity
    • Plugin
      • Auth
    • V1
      • Api Key
      • Authorization
      • Domain
      • Domain Owner
      • Endpoint
      • Policy
      • Project
      • Project Group
      • Provider
      • Role
      • Role Binding
      • Service Account
      • Token
      • User
  • Inventory
    • Plugin
      • Collector
    • V1
      • Change History
      • Cloud Service
      • Cloud Service Type
      • Collector
      • Job
      • Job Task
      • Note
      • Region
      • Resource Group
      • Server
  • Monitoring
    • Plugin
      • Data Source
      • Event
      • Log
      • Metric
      • Webhook
    • V1
      • Alert
      • Data Source
      • Escalation Policy
      • Event
      • Event Rule
      • Log
      • Maintenance Window
      • Metric
      • Note
      • Project Alert Config
      • Webhook
  • Notification
    • Plugin
      • Notification
      • Protocol
    • V1
      • Notification
      • Notification Usage
      • Project Channel
      • Protocol
      • Quota
      • User Channel
  • Plugin
    • V1
      • Plugin
      • Supervisor
  • Repository
    • V1
      • Plugin
      • Policy
      • Repository
      • Schema
  • Sample
    • V1
      • Helloworld
  • Secret
    • V1
      • Secret
      • Secret Group
  • Statistics
    • Plugin
      • Storage
    • V1
      • History
      • Resource
      • Schedule
      • Storage
Powered by GitBook
On this page
  • ProjectAlertConfig
  • create
  • update
  • delete
  • get
  • list
  • stat
  • Message
  • AlertOptions
  • CreateProjectAlertConfigRequest
  • GetProjectAlertConfigRequest
  • ProjectAlertConfigInfo
  • ProjectAlertConfigQuery
  • ProjectAlertConfigRequest
  • ProjectAlertConfigStatQuery
  • ProjectAlertConfigsInfo
  • UpdateProjectAlertConfigRequest

Was this helpful?

  1. Monitoring
  2. V1

Project Alert Config

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

POST /monitoring/v1/project-alert-configs

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.

Type
Message

Request

Response

{
    "project_id": "project-dee2a81d4859",
    "escalation_policy_id": "ep-b441abe04ca9",
    "options": {
        "notification_urgency": "ALL",
        "recovery_mode": "AUTO"
    },
    "domain_id": "domain-58010aa2e451"
}
{
    "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"
}

update

PUT /monitoring/v1/project-alert-config/{project_alert_config_id}

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.

Type
Message

Request

Response

{
    "project_id": "project-dee2a81d4859",
    "escalation_policy_id": "ep-4ee42a9b2d96",
    "options": {
        "notification_urgency": "ALL",
        "recovery_mode": "MANUAL"
    },
    "domain_id": "domain-58010aa2e451"
}
{
    "project_id": "project-dee2a81d4859",
    "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-06-27T05:15:02.697Z"
}

delete

DELETE /monitoring/v1/project-alert-config/{project_alert_config_id}

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

Type
Message

Request

Response

{
    "project_id": "project-dee2a81d4859",
    "domain_id": "domain-58010aa2e451"
}

get

GET /monitoring/v1/project-alert-config/{project_alert_config_id}

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

Type
Message

Request

Response

{
    "project_id": "project-430bf6ab1e6d",
    "domain_id": "domain-58010aa2e451"
}
{
    "project_id": "project-430bf6ab1e6d",
    "options": {
        "notification_urgency": "ALL",
        "recovery_mode": "AUTO"
    },
    "escalation_policy_info": {
        "escalation_policy_id": "ep-4ee42a9b2d96",
        "name": "HAHA",
        "is_default": true
    },
    "domain_id": "domain-58010aa2e451",
    "created_at": "2022-05-03T08:17:11.715Z"
}

list

GET /monitoring/v1/project-alert-configs

POST /monitoring/v1/project-alert-configs/search

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.

Type
Message

Request

Response

{
    "query": {},
    "domain_id": "domain-58010aa2e451"
}
{
    "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
}

stat

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

Type
Message

Request

Response

Message

AlertOptions

Field
Type
Description

notification_urgency

  • URGENCY_NONE

  • ALL

  • HIGH_ONLY

recovery_mode

  • RECOVERY_NONE

  • AUTO

  • MANUAL

CreateProjectAlertConfigRequest

Field
Type
Required
Description

project_id

string

✔

escalation_policy_id

string

✘

options

✘

domain_id

string

✔

GetProjectAlertConfigRequest

Field
Type
Required
Description

project_id

string

✔

domain_id

string

✔

only

list of string

✘

ProjectAlertConfigInfo

Field
Type
Description

project_id

string

options

escalation_policy_info

domain_id

string

created_at

string

ProjectAlertConfigQuery

Field
Type
Required
Description

query

✘

project_id

string

✘

escalation_policy_id

string

✘

domain_id

string

✔

ProjectAlertConfigRequest

Field
Type
Required
Description

project_id

string

✔

domain_id

string

✔

ProjectAlertConfigStatQuery

Field
Type
Required
Description

query

✔

domain_id

string

✔

ProjectAlertConfigsInfo

Field
Type
Description

results

total_count

UpdateProjectAlertConfigRequest

Field
Type
Required
Description

project_id

string

✔

escalation_policy_id

string

✘

options

✘

domain_id

string

✔

PreviousNoteNextWebhook

Last updated 2 years ago

Was this helpful?

google.protobuf.Empty
google.protobuf.Struct
google.protobuf.Empty
google.protobuf.Struct
spaceone.api.core.v1.Query
spaceone.api.core.v1.StatisticsQuery
int32
create
CreateProjectAlertConfigRequest
ProjectAlertConfigInfo
update
UpdateProjectAlertConfigRequest
ProjectAlertConfigInfo
delete
ProjectAlertConfigRequest
get
GetProjectAlertConfigRequest
ProjectAlertConfigInfo
list
ProjectAlertConfigQuery
ProjectAlertConfigsInfo
stat
ProjectAlertConfigStatQuery
CreateProjectAlertConfigRequest
ProjectAlertConfigInfo
UpdateProjectAlertConfigRequest
ProjectAlertConfigInfo
ProjectAlertConfigRequest
GetProjectAlertConfigRequest
ProjectAlertConfigInfo
ProjectAlertConfigQuery
ProjectAlertConfigsInfo
ProjectAlertConfigStatQuery
AlertOptions
AlertOptions
EscalationPolicyInfo
list of ProjectAlertConfigInfo
AlertOptions