Project Alert Config

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

Package : spaceone.api.monitoring.v1

ProjectAlertConfig

ProjectAlertConfig Methods:

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.

{
    "project_id": "project-dee2a81d4859",
    "escalation_policy_id": "ep-b441abe04ca9",
    "options": {
        "notification_urgency": "ALL",
        "recovery_mode": "AUTO"
    },
    "domain_id": "domain-58010aa2e451"
}

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.

{
    "project_id": "project-dee2a81d4859",
    "escalation_policy_id": "ep-4ee42a9b2d96",
    "options": {
        "notification_urgency": "ALL",
        "recovery_mode": "MANUAL"
    },
    "domain_id": "domain-58010aa2e451"
}

delete

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

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

{
    "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.

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

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.

{
    "query": {},
    "domain_id": "domain-58010aa2e451"
}

stat

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

Message

AlertOptions

FieldTypeDescription

notification_urgency

  • URGENCY_NONE

  • ALL

  • HIGH_ONLY

recovery_mode

  • RECOVERY_NONE

  • AUTO

  • MANUAL

CreateProjectAlertConfigRequest

FieldTypeRequiredDescription

project_id

string

escalation_policy_id

string

options

domain_id

string

GetProjectAlertConfigRequest

FieldTypeRequiredDescription

project_id

string

domain_id

string

only

list of string

ProjectAlertConfigInfo

FieldTypeDescription

project_id

string

options

escalation_policy_info

domain_id

string

created_at

string

ProjectAlertConfigQuery

FieldTypeRequiredDescription

query

project_id

string

escalation_policy_id

string

domain_id

string

ProjectAlertConfigRequest

FieldTypeRequiredDescription

project_id

string

domain_id

string

ProjectAlertConfigStatQuery

FieldTypeRequiredDescription

query

domain_id

string

ProjectAlertConfigsInfo

FieldTypeDescription

results

total_count

UpdateProjectAlertConfigRequest

FieldTypeRequiredDescription

project_id

string

escalation_policy_id

string

options

domain_id

string

Last updated