- API >
- Public API Resources >
- Alerts
Alerts¶
On this page
Operations¶
GET /api/public/v1.0/groups/GROUP-ID/alerts
- Gets all alerts with the specified status. Use thestatus
query parameter with one of these possible values:OPEN CLOSED
GET /api/public/v1.0/groups/GROUP-ID/alerts/ALERT-ID
- Get a single alert by ID.GET /api/public/v1.0/groups/GROUP-ID/alerts/ALERT-ID/alertConfigs
- Get the alert configuration(s) that triggered this alert.PATCH /api/public/v1.0/groups/GROUP-ID/alerts/ALERT-ID
- Update an existing alert. The only field you may modify is theacknowledgedUntil
field.- To acknowledge an alert “forever” set the date to 100 years in the future.
- To unacknowledge a previously acknowledged alert, set the date in the past.
Sample Entity¶
Entity Fields¶
Name | Type | Description |
---|---|---|
id | string | Unique identifier. |
groupId | string | ID of the group that this alert was opened for. |
alertConfigId | string | ID of the alert configuration that triggered this alert. |
typeName | enum | The type of alert. Possible values are:
|
eventTypeName | enum | The name of the event that triggered the alert. The possible values here
depend on the
|
status | enum | The current state of the alert. Possible values are:
|
acknowledgedUntil | date | The date through which the alert has been acknowledged. Will not be present if the alert has never been acknowledged. |
acknowledgementComment | string | The comment left by the user who acknowledged the alert. Will not be present if the alert has never been acknowledged. |
acknowledgingUsername | string | The username of the user who acknowledged the alert. Will not be present if the alert has never been acknowledged. |
created | date | When the alert was opened. |
updated | date | When the alert was last updated. |
resolved | date | When the alert was closed. Only present if the status is CLOSED . |
lastNotified | date | When the last notification was sent for this alert. Only present if notifications have been sent. |
metricName | enum | The name of the metric whose value went outside the threshold. Only
present for alerts of type
|
currentValue | object | The current value of the metric that triggered the alert. Only present for
alerts of type HOST_METRIC . |
currentValue.number | float | The value of the metric. |
currentValue.units | enum | The units for the value. Depends on the type of metric. For example, a metric that measures memory consumption would have a byte measurement, while a metric that measures time would have a time unit. Possible values are:
|
Links¶
Relation | Description |
---|---|
self | Me |
group | The group that this alert was triggered for. |
alertConfig | The alert configuration that triggered this alert. |
alertConfigs | A list of alert configurations that triggered this alert. This list will
only contain a single element and is present for backward compatibility.
New code should use the alertConfig link instead. |
host | The host that triggered this alert. Only present for alerts of type
HOST . |