Alert

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

Package : spaceone.api.monitoring.v1

Alert

Alert Methods:

Method
Request
Response

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.

Type
Message

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.

Type
Message

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}

Type
Message

Request

Response

merge

POST /monitoring/v1/alerts/merge

Type
Message

Request

Response

snooze

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

Type
Message

Request

Response

add_responder

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

Adds a responder who receives a Notification about an Alert.

Type
Message

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.

Type
Message

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

Type
Message

Request

Response

remove_project_dependency

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

Type
Message

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.

Type
Message

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.

Type
Message

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.

Type
Message

Request

Response

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

stat

POST /monitoring/v1/alerts/stat

Type
Message

Request

Response

Message

AlertInfo

Field
Type
Description

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

Field
Type
Required
Description

alert_id

string

project_id

string

domain_id

string

AlertQuery

Field
Type
Required
Description

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

Field
Type
Required
Description

alert_id

string

domain_id

string

AlertResource

Field
Type
Description

resource_id

string

resource_type

string

name

string

AlertResponder

Field
Type
Description

resource_type

string

resource_id

string

AlertResponderRequest

Field
Type
Required
Description

alert_id

string

resource_type

string

resource_id

string

domain_id

string

AlertStatQuery

Field
Type
Required
Description

query

domain_id

string

AlertsInfo

Field
Type
Description

results

total_count

CreateAlertRequest

Field
Type
Required
Description

title

string

description

string

assignee

string

urgency

  • ALERT_URGENCY_NONE

  • HIGH

  • LOW

project_id

string

domain_id

string

GetAlertRequest

Field
Type
Required
Description

alert_id

string

domain_id

string

only

list of string

MergeAlertRequest

Field
Type
Required
Description

alerts

list of string

merge_to

string

domain_id

string

SnoozeAlertRequest

Field
Type
Required
Description

alert_id

string

end_time

string

domain_id

string

UpdateAlertRequest

Field
Type
Required
Description

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

Field
Type
Required
Description

alert_id

string

access_key

string

state

string

Last updated