Skip to content
v1
Docs

API reference

Organisation

The organisation the key acts in: its account type, its limits and what is used, and, for a key that may see billing, its billing details.

Its operations need the scope alarms.view.

Get the calling organisation

GET/v1/organisation

Returns the organisation the key acts in: its uuid and name, its account type, its data region, its limits with what is used and, only for a key that holds billing.view, its billing currency and billing emails. It takes no parameters and needs no permission for the base fields.

Returns

200 OK:

The organisation, its account type, its data region, its limits and, with billing.view, its billing details.

Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.

List the organisation's alarms

GET/v1/organisation/alarms

Lists every alarm of the organisation in one paged call, with each alarm’s thresholds, live state, resource and the policies it notifies. Filter by entity_type (one kind of resource; server is the servers’ own alarms), server_uuid (one server with its volumes, ports and systemd units), rule_slug (one or more), active, state (one or more) and policy_uuid. Alarms of deleted resources are not listed. For one resource’s alarms use GET /v1/alarms; GET /v1/servers/{server_uuid}/alarms also lists a server’s alarms with its children’s. Pages by page and per_page (limit is the same as per_page); every page carries current_page, per_page, last_page and total.

Needs the scope alarms.view.

Query parameters

  • entity_typestring or nullOptional

    Only alarms on this kind of resource: one of domain, service, server, log_source, custom_metric, database_instance, server_port, server_system_service or server_volume. server is the servers’ own alarms only; for a server with its volumes, ports and units send server_uuid, and for every port server_port. Every kind when omitted. Alarms of deleted resources are not listed.

    Values:domainserviceserverlog_sourcecustom_metricdatabase_instanceserver_portserver_system_serviceserver_volume(an open set: new values may be added)
  • server_uuidstring (uuid) or nullOptional

    Only the alarms of this server and of its volumes, ports and systemd units. With entity_type, only server, server_volume, server_port or server_system_service. Alarms of removed volumes, ports and units are not listed.

  • rule_slugarray of strings or nullOptional

    Only alarms on these catalogue rules, by rule_slug; every rule when omitted. A bare value is read as a one-item list. A list: repeat the parameter (rule_slug=<value>&rule_slug=<value>) or send one value (rule_slug=<value>); rule_slug[]=<value> is accepted too.

  • activestring or nullOptional

    Only alarms that are switched on (true) or off (false); both when omitted.

    Values:truefalse10(an open set: new values may be added)
  • statearray of strings or nullOptional

    Only alarms in these live states: ok, warning, critical or inactive; every state when omitted. A bare value is read as a one-item list. A list: repeat the parameter (state=ok&state=warning) or send one value (state=ok); state[]=ok is accepted too.

    Values:okwarningcriticalinactive(an open set: new values may be added)
  • policy_uuidstring (uuid) or nullOptional

    Only the alarms that notify this alarm policy.

  • limitinteger or nullOptional

    The same as per_page, kept for existing clients.

  • include_totalstring or nullOptional

    Ignored: total is always present.

    Values:truefalse10(an open set: new values may be added)
  • per_pageinteger or nullOptional

    How many items one page holds, from 1 to 100; 25 when omitted.

  • pageinteger or nullOptional

    The page to read, from 1; 1 when omitted. A page past the last answers no rows.

Returns

200 OK:

One page of the organisation’s alarms.

Each item of the page:

  • uuidstring

    The alarm’s uuid.

  • namestring

    The alarm’s own name, else its rule’s.

  • rule_slugstring

    The catalogue rule’s slug.

  • classificationstring

    The catalogue rule’s classification: one of operations, security, monitoring. On a server it decides which of the server’s three healths an open incident moves; the other resources keep one health that counts every classification.

  • metric_namestring

    The catalogue rule’s name.

  • descriptionstring or null

    The catalogue rule’s description; null when it has none.

  • alarm_typestring or null

    boolean or threshold, as the catalogue rule says.

  • unitstring or null

    The unit of the thresholds; null when the rule has none.

  • comparison_operatorstring

    How a reading is compared with the thresholds: the alarm’s own operator, else the rule’s default.

  • aggregationstring or null

    How the readings in a window are combined before the comparison; null when the alarm sets none.

  • warning_thresholdnumber or null

    The alarm’s own value, else the rule’s default.

  • critical_thresholdnumber or null

    The alarm’s own value, else the rule’s default.

  • warning_window_minutesinteger or null

    The window, in minutes, the warning threshold is judged over; null when the alarm has none.

  • critical_window_minutesinteger or null

    The window, in minutes, the critical threshold is judged over; null when the alarm has none.

  • warning_consecutive_failures_countinteger

    Consecutive evaluations before a warning: the alarm’s own count, else the rule’s default.

  • critical_consecutive_failures_countinteger

    Consecutive evaluations before a critical: the alarm’s own count, else the rule’s default.

  • self_resolvingboolean

    Whether the alarm clears itself when the condition ends (it sends no resolve notification).

  • activeboolean

    Whether the alarm is switched on.

  • notify_on_acknowledgeboolean

    Whether acknowledging an incident of this alarm notifies: the alarm’s own flag, else the catalogue’s. Never null.

  • notify_on_resolveboolean

    Whether resolving an incident of this alarm notifies: the alarm’s own flag, else the catalogue’s. Never null.

  • entityobject

    The resource the alarm is on, of any type that has alarms.

  • parent_entityobject or null

    The server of a volume, port or unit; null for every other resource.

  • alarm_policiesarray of objects

    The policies the alarm notifies. A caller holding policies.view (the key’s scope and the user’s permission) gets each policy’s name; without it, the uuid alone.

  • statestring

    One of ok, warning, critical, inactive.

    Values:criticalwarningokinactive(an open set: new values may be added)
  • inactive_reasonstring or null

    switched_off or resource_inactive while state is inactive; null otherwise.

  • state_sinceinteger or null

    Epoch milliseconds: when the open incident was triggered, while state is warning or critical; null otherwise.

    An instant: epoch milliseconds, UTC.
  • acknowledgedboolean

    Whether the open incident has been acknowledged.

Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.