Alert
An Alert, a set of Events, is the smallest unit to manage incidents.
Package : spaceone.api.monitoring.v1
Alert
create
POST /monitoring/v1/alerts
Creates a new Alert. Alerts generated with
createmethod are made in a manual way. Manually made Alerts can be used for Notifications.
Request
Response
{
    "title": "sample test",
    "description": "This is a description of sample.",
    "urgency": "HIGH",
    "project_id": "project-123456789012",
    "domain_id": "domain-123456789012"
}{
    "alert_number": 104053,
    "alert_id": "alert-123456789012",
    "title": "sample test",
    "state": "TRIGGERED",
    "description": "This is a description of sample.",
    "urgency": "HIGH",
    "severity": "NONE",
    "escalation_step": 1,
    "additional_info": {},
    "triggered_by": "user1@email.com",
    "escalation_policy_id": "ep-123456789012",
    "project_id": "project-123456789012",
    "domain_id": "domain-123456789012",
    "created_at": "2022-01-01T01:43:08.566Z",
    "updated_at": "2022-01-01T01:43:08.566Z",
    "escalated_at": "2022-01-01T01:43:54.464Z"
}update
PUT /monitoring/v1/alert/{alert_id}
Updates a specific Alert. You can make changes in Alert settings, including the
title,description,responder,state, andurgency. Theresponderof the Alert is a User who is assigned to respond to the Alert.
Request
Response
{
    "alert_id": "alert-123456789012",
    "state": "ACKNOWLEDGED",
    "urgency": "LOW",
    "description": "[updating]This is a description of sample.",
    "domain_id": "domain-123456789012"
}{
    "alert_number": 104053,
    "alert_id": "alert-123456789012",
    "title": "sample test",
    "state": "ACKNOWLEDGED",
    "description": "[updating]This is a description of sample. ",
    "urgency": "LOW",
    "severity": "NONE",
    "escalation_step": 1,
    "additional_info": {},
    "triggered_by": "user1@email.com",
    "escalation_policy_id": "ep-123456789012",
    "project_id": "project-123456789012",
    "domain_id": "domain-123456789012",
    "created_at": "2022-01-01T01:43:08.566Z",
    "updated_at": "2022-01-01T01:43:08.566Z",
    "acknowledged_at": "2022-01-01T01:48:52.799Z",
    "escalated_at": "2022-01-01T01:43:54.464Z"
}update_state
POST /monitoring/v1/alert/{alert_id}/{access_key}/{state}
Request
Response
merge
POST /monitoring/v1/alerts/merge
Request
Response
snooze
POST /monitoring/v1/alert/{alert_id}/snooze
Request
Response
add_responder
POST /monitoring/v1/alert/{alert_id}/responders
Adds a responder who receives a Notification about an Alert.
Request
Response
{
    "alert_id": "alert-123456789012",
    "resource_type": "identity.User",
    "resource_id": "user2@email.com",
    "domain_id": "domain-123456789012"
}{
    "alert_number": 104053,
    "alert_id": "alert-123456789012",
    "title": "sample test",
    "state": "ACKNOWLEDGED",
    "description": "[updating]This is a description of sample. ",
    "urgency": "LOW",
    "severity": "NONE",
    "escalation_step": 1,
    "responders": [
        {
            "resource_type": "identity.User",
            "resource_id": "user2@email.com"
        }
    ],
    "additional_info": {},
    "triggered_by": "user1@email.com",
    "escalation_policy_id": "ep-123456789012",
    "project_id": "project-123456789012",
    "domain_id": "domain-123456789012",
    "created_at": "2022-01-01T01:43:08.566Z",
    "updated_at": "2022-01-01T01:43:08.566Z",
    "acknowledged_at": "2022-01-01T02:24:12.051Z",
    "escalated_at": "2022-01-01T01:43:54.464Z"
}remove_responder
DELETE /monitoring/v1/alert/{alert_id}/responders
Deletes a responder who receives a Notification about an Alert.
Request
Response
{
    "alert_id": "alert-123456789012",
    "resource_type": "identity.User",
    "resource_id": "user2@email.com",
    "domain_id": "domain-123456789012"
}{
    "alert_number": 104053,
    "alert_id": "alert-123456789012",
    "title": "sample test",
    "state": "ACKNOWLEDGED",
    "description": "[updating]This is a description of sample. ",
    "urgency": "LOW",
    "severity": "NONE",
    "escalation_step": 1,
    "additional_info": {},
    "triggered_by": "user1@email.com",
    "escalation_policy_id": "ep-123456789012",
    "project_id": "project-123456789012",
    "domain_id": "domain-123456789012",
    "created_at": "2022-01-01T01:43:08.566Z",
    "updated_at": "2022-01-01T01:43:08.566Z",
    "acknowledged_at": "2022-01-01T01:48:52.799Z",
    "escalated_at": "2022-01-01T01:43:54.464Z"
}add_project_dependency
POST /monitoring/v1/alert/{alert_id}/project-dependencies
Response
remove_project_dependency
DELETE /monitoring/v1/alert/{alert_id}/project-dependency/{project_id}
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_idof the Alert to delete.
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.
Request
Response
{
    "alert_id": "alert-123456789012",
    "domain_id": "domain-123456789012"
}{
    "alert_number": 104053,
    "alert_id": "alert-123456789012",
    "title": "sample test",
    "state": "ACKNOWLEDGED",
    "description": "[updating]This is a description of sample. ",
    "urgency": "LOW",
    "severity": "NONE",
    "escalation_step": 1,
    "additional_info": {},
    "triggered_by": "user1@email.com",
    "escalation_policy_id": "ep-123456789012",
    "project_id": "project-123456789012",
    "domain_id": "domain-123456789012",
    "created_at": "2022-01-01T01:43:08.566Z",
    "updated_at": "2022-01-01T01:43:08.566Z",
    "acknowledged_at": "2022-01-01T01:48:52.799Z",
    "escalated_at": "2022-01-01T01:43:54.464Z"
}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.
Request
Response
{
    "query": {},
    "domain_id": "domain-123456789012"
}{
    "results": [
        {
            "alert_number": 104057,
            "alert_id": "alert-987654321098",
            "title": "Notification of access to the bastion Host",
            "state": "TRIGGERED",
            "description": "SSH Access to stargate-dev from adm",
            "urgency": "LOW",
            "severity": "INFO",
            "resource": {
                "resource_id": "server-123456789012",
                "resource_type": "inventory.Server",
                "name": "stargate-dev"
            },
            "escalation_step": 1,
            "escalation_ttl": 1,
            "additional_info": {
                "host": "[]",
                "user": "user1"
            },
            "triggered_by": "webhook-123456789012",
            "webhook_id": "webhook-123456789012",
            "escalation_policy_id": "ep-123456789012",
            "project_id": "project-123456789012",
            "domain_id": "domain-123456789012",
            "created_at": "2022-01-01T02:46:35.934Z",
            "updated_at": "2022-01-01T02:46:35.934Z",
            "escalated_at": "2022-01-01T02:46:35.979Z"
        },
        {
            "alert_number": 104056,
            "alert_id": "alert-123456789999",
            "title": "Notification of access to the bastion Host",
            "state": "TRIGGERED",
            "description": "SSH Access to stargate-dev from user3@email.com",
            "urgency": "LOW",
            "severity": "INFO",
            "resource": {
                "resource_id": "server-123456789012",
                "resource_type": "inventory.Server",
                "name": "stargate-dev"
            },
            "escalation_step": 1,
            "escalation_ttl": 1,
            "additional_info": {
                "user": "user3@email.com",
                "host": "['111.111.111.11']"
            },
            "triggered_by": "webhook-123456789012",
            "webhook_id": "webhook-123456789012",
            "escalation_policy_id": "ep-123456789012",
            "project_id": "project-123456789012",
            "domain_id": "domain-123456789012",
            "created_at": "2022-01-01T02:46:31.391Z",
            "updated_at": "2022-01-01T02:46:31.391Z",
            "escalated_at": "2022-01-01T02:46:31.553Z"
        }
    ],
    "total_count": 21283
}stat
POST /monitoring/v1/alerts/stat
Request
Response
Message
AlertInfo
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
provider
string
account
string
is_snoozed
bool
snoozed_end_time
string
project_dependencies
list of string
image_url
string
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
alert_id
string
✔
project_id
string
✔
domain_id
string
✔
AlertQuery
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
alert_id
string
✔
domain_id
string
✔
AlertResource
resource_id
string
resource_type
string
name
string
AlertResponder
resource_type
string
resource_id
string
AlertResponderRequest
alert_id
string
✔
resource_type
string
✔
resource_id
string
✔
domain_id
string
✔
AlertStatQuery
domain_id
string
✔
AlertsInfo
CreateAlertRequest
title
string
✔
description
string
✘
assignee
string
✘
urgency
- ALERT_URGENCY_NONE 
- HIGH 
- LOW 
✘
project_id
string
✔
domain_id
string
✔
GetAlertRequest
alert_id
string
✔
domain_id
string
✔
only
list of string
✘
MergeAlertRequest
alerts
list of string
✔
merge_to
string
✔
domain_id
string
✔
SnoozeAlertRequest
alert_id
string
✔
end_time
string
✔
domain_id
string
✔
UpdateAlertRequest
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
alert_id
string
✔
access_key
string
✔
state
string
✘
Last updated
Was this helpful?
