public.alarms.list
const url = 'https://rest.watchtower15.com/v1/alarms?entity_type=domain&entity_uuid=2489E9AD-2EE2-8E00-8EC9-32D5F69181C0&include_total=true';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://rest.watchtower15.com/v1/alarms?entity_type=domain&entity_uuid=2489E9AD-2EE2-8E00-8EC9-32D5F69181C0&include_total=true' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”AlarmsListResource
object
object
The alarm’s own name, else its rule’s.
The catalogue rule’s name.
boolean or threshold, as the catalogue rule says.
The alarm’s own value, else the rule’s default.
The alarm’s own value, else the rule’s default.
Consecutive evaluations before a warning: the alarm’s own count, else the rule’s default.
Consecutive evaluations before a critical: the alarm’s own count, else the rule’s default.
Whether the alarm clears itself when the condition ends (it sends no resolve notification).
Whether the alarm is switched on.
One of ok, warning, critical, inactive.
switched_off or resource_inactive while state is inactive; null otherwise.
Epoch milliseconds: when the open incident was triggered, while state is warning or critical.
Whether the open incident has been acknowledged.
The whole list’s size; present only with include_total=true.
object
The resource whose alarms these are.
object
One of the types that have alarms.
Example
{ "data": [ { "state": "critical" } ]}The API key is missing, malformed, expired or revoked.
object
https://docs.watchtower15.com/api/errors/<code>/
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "code": "example", "detail": "example", "request_id": "example", "errors": { "additionalProperty": [ "example" ] }, "limit": 1, "used": 1}The key or its owner does not hold what the operation needs.
object
https://docs.watchtower15.com/api/errors/<code>/
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "code": "example", "detail": "example", "request_id": "example", "errors": { "additionalProperty": [ "example" ] }, "limit": 1, "used": 1}No such record in this organisation (an absent id and another organisation’s answer alike).
object
https://docs.watchtower15.com/api/errors/<code>/
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "code": "example", "detail": "example", "request_id": "example", "errors": { "additionalProperty": [ "example" ] }, "limit": 1, "used": 1}The request is invalid; errors names the parameters.
object
https://docs.watchtower15.com/api/errors/<code>/
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "code": "example", "detail": "example", "request_id": "example", "errors": { "additionalProperty": [ "example" ] }, "limit": 1, "used": 1}A rate limit or the organisation’s daily limit is reached; Retry-After says when to retry.
object
https://docs.watchtower15.com/api/errors/<code>/
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "code": "example", "detail": "example", "request_id": "example", "errors": { "additionalProperty": [ "example" ] }, "limit": 1, "used": 1}An unexpected error.
object
https://docs.watchtower15.com/api/errors/<code>/
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "code": "example", "detail": "example", "request_id": "example", "errors": { "additionalProperty": [ "example" ] }, "limit": 1, "used": 1}