Fetch resources containing the highest severity alerts
GET {{base_url}}/api/alert_manager/v1/resource_status
Fetches the resources' statuses that contain the alerts with the highest severity found for the resources.
Resource with ID that was not found in resourceId
parameter of any active alert considered to have the ok
severity.
This endpoint may return multiple records for the same resource if it has multiple alerts with the same severity and the same creation time.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
id | null | (Optional) IDs of the resources; if omitted, the response will contain statuses for all resources that have alerts. |
For resources with multiple IDs, the client must specify resource's IDs by using the or()
operator:
-
Example:
id=or(ID3,ID4,ID5)
- looks for status of a single resource -
Example:
id=ID1&id=or(ID3,ID4,ID5)&id=or(ID6,ID7)&id=ID8
- looks for status of four resources
Type: Array of String
Array type description:
Type: String |
| embed_alert
| boolean | | (Optional) If true, the entire alert object will be included in the response.
Type: Boolean Default: false |
RESPONSES
status: OK
{"items":[{"id":"0A0E639A-4E27-4C61-AFFF-7BE314C30A33","severity":"critical","alert":{"updatedAt":"2021-04-02T22:16:16.426961168Z","tenant":{"id":"56","uuid":"53a17005-b4be-4c5c-8186-758349e343cd","locator":"/1/50/53/56/"},"id":"01C2D69A-112B-4DE1-98AE-8688223C5F4B","createdAt":"2021-04-02T22:16:16Z","details":{"activity":{"id":"9C3DE32F-DCB3-4106-9988-56BFF5A64D98","type":"8F01AC13-F59E-4851-9204-DE1FD77E36B4"}},"category":"cti.a.p.am.category.v1.0~a.p.backup.v1.0","receivedAt":"2021-04-01T22:16:19.71025511Z","severity":"critical","type":"cti.a.p.am.alert.v1.0~a.p.backup.failed.v1.0"}}]}