Alert

An Alert, a set of Events, is the smallest unit to manage incidents.

Package : spaceone.api.monitoring.v1

Alert

Alert Methods:

create

POST /monitoring/v1/alerts

Creates a new Alert. Alerts generated with create method are made in a manual way. Manually made Alerts can be used for Notifications.

TypeMessage

Request

Response

{
    "title": "sample test",
    "description": "This is a description of sample.",
    "urgency": "HIGH",
    "project_id": "project-123456789012",
    "domain_id": "domain-123456789012"
}

update

PUT /monitoring/v1/alert/{alert_id}

Updates a specific Alert. You can make changes in Alert settings, including the title, description, responder, state, and urgency. The responder of the Alert is a User who is assigned to respond to the Alert.

TypeMessage

Request

Response

{
    "alert_id": "alert-123456789012",
    "state": "ACKNOWLEDGED",
    "urgency": "LOW",
    "description": "[updating]This is a description of sample.",
    "domain_id": "domain-123456789012"
}

update_state

POST /monitoring/v1/alert/{alert_id}/{access_key}/{state}

TypeMessage

Request

Response

merge

POST /monitoring/v1/alerts/merge

TypeMessage

Request

Response

snooze

POST /monitoring/v1/alert/{alert_id}/snooze

TypeMessage

Request

Response

add_responder

POST /monitoring/v1/alert/{alert_id}/responders

Adds a responder who receives a Notification about an Alert.

TypeMessage

Request

Response

{
    "alert_id": "alert-123456789012",
    "resource_type": "identity.User",
    "resource_id": "user2@email.com",
    "domain_id": "domain-123456789012"
}

remove_responder

DELETE /monitoring/v1/alert/{alert_id}/responders

Deletes a responder who receives a Notification about an Alert.

TypeMessage

Request

Response

{
    "alert_id": "alert-123456789012",
    "resource_type": "identity.User",
    "resource_id": "user2@email.com",
    "domain_id": "domain-123456789012"
}

add_project_dependency

POST /monitoring/v1/alert/{alert_id}/project-dependencies

TypeMessage

Request

Response

remove_project_dependency

DELETE /monitoring/v1/alert/{alert_id}/project-dependency/{project_id}

TypeMessage

Request

Response

delete

DELETE /monitoring/v1/alert/{alert_id}

Deletes a specific Alert and remove it from the list of Alerts. You must specify the alert_id of the Alert to delete.

TypeMessage

Request

Response

{
    "alert_id": "alert-123456789012",
    "domain_id": "domain-123456789012"
}

get

GET /monitoring/v1/alert/{alert_id}

Gets a specific Alert. Prints detailed information about the Alert.

TypeMessage

Request

Response

{
    "alert_id": "alert-123456789012",
    "domain_id": "domain-123456789012"
}

list

GET /monitoring/v1/alerts

POST /monitoring/v1/alerts/search

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

TypeMessage

Request

Response

{
    "query": {},
    "domain_id": "domain-123456789012"
}

stat

POST /monitoring/v1/alerts/stat

TypeMessage

Request

Response

Message

AlertInfo

FieldTypeDescription

alert_number

alert_id

string

title

string

state

  • ALERT_STATE_NONE

  • TRIGGERED

  • ACKNOWLEDGED

  • RESOLVED

  • ERROR

status_message

string

description

string

assignee

string

urgency

  • ALERT_URGENCY_NONE

  • HIGH

  • LOW

severity

string

rule

string

resource

provider

string

account

string

is_snoozed

bool

snoozed_end_time

string

escalation_step

escalation_ttl

responders

project_dependencies

list of string

image_url

string

additional_info

triggered_by

string

webhook_id

string

escalation_policy_id

string

project_id

string

domain_id

string

created_at

string

updated_at

string

acknowledged_at

string

resolved_at

string

escalated_at

string

AlertProjectDependencyRequest

FieldTypeRequiredDescription

alert_id

string

project_id

string

domain_id

string

AlertQuery

FieldTypeRequiredDescription

query

alert_number

alert_id

string

title

string

state

  • ALERT_STATE_NONE

  • TRIGGERED

  • ACKNOWLEDGED

  • RESOLVED

  • ERROR

assignee

string

urgency

  • ALERT_URGENCY_NONE

  • HIGH

  • LOW

severity

string

is_snoozed

string

resource_id

string

provider

string

account

string

triggered_by

string

webhook_id

string

escalation_policy_id

string

project_id

string

domain_id

string

AlertRequest

FieldTypeRequiredDescription

alert_id

string

domain_id

string

AlertResource

FieldTypeDescription

resource_id

string

resource_type

string

name

string

AlertResponder

FieldTypeDescription

resource_type

string

resource_id

string

AlertResponderRequest

FieldTypeRequiredDescription

alert_id

string

resource_type

string

resource_id

string

domain_id

string

AlertStatQuery

FieldTypeRequiredDescription

query

domain_id

string

AlertsInfo

FieldTypeDescription

results

total_count

CreateAlertRequest

FieldTypeRequiredDescription

title

string

description

string

assignee

string

urgency

  • ALERT_URGENCY_NONE

  • HIGH

  • LOW

project_id

string

domain_id

string

GetAlertRequest

FieldTypeRequiredDescription

alert_id

string

domain_id

string

only

list of string

MergeAlertRequest

FieldTypeRequiredDescription

alerts

list of string

merge_to

string

domain_id

string

SnoozeAlertRequest

FieldTypeRequiredDescription

alert_id

string

end_time

string

domain_id

string

UpdateAlertRequest

FieldTypeRequiredDescription

alert_id

string

title

string

state

string

status_message

string

description

string

assignee

string

urgency

  • ALERT_URGENCY_NONE

  • HIGH

  • LOW

project_id

string

reset_status_message

bool

reset_description

bool

reset_assignee

bool

domain_id

string

UpdateAlertStateRequest

FieldTypeRequiredDescription

alert_id

string

access_key

string

state

string

Last updated