get_alert_grouping
const url = 'https://example.com/api/v1/alert-grouping';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://example.com/api/v1/alert-grouping \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The deployment’s grouping level, its exceptions, and what each level would do to the outage open now
The deployment’s level, its exceptions, and the preview.
object
Oldest first.
One exception to the deployment’s level (ADR-262 decision 2): every node inside one of
group_ids (at any depth) and/or carrying one or all of tags (tag_match, then join)
groups at level. When several reach one node, the weakest level wins.
object
How group_ids and tags combine when both are named.
How strongly alerts are grouped, weakest first (ADR-236 decision 2).
How the tags combine among themselves (ADR-267): any or all.
null when the history could not be read; the rest of the answer stands.
object
Node-down fires recorded in the last seven days.
One per level, weakest first (off, certain, links, site).
What one level would have done to the last seven days’ fires.
object
Of the fires that waited and then paged, the longest wait in seconds.
Of the fires that waited and then paged, the median wait in seconds.
How strongly alerts are grouped, weakest first (ADR-236 decision 2).
Fires that would have paged, each sent the moment it committed.
Fires that would have paged waiting for a failing neighbour to commit first.
More history was recorded than is read, so the newest fires are missing.
How strongly alerts are grouped, weakest first (ADR-236 decision 2).
What would happen to the outage open now.
object
Nodes down now.
How many of them would page on their own with the deployment at each level, weakest first
(off, certain, links, site), every exception keeping its own level.
Whether a border’s notification waits for a failing neighbour to commit (ADR-236 Inc.2).
Example
{ "exceptions": [ { "join": "or", "level": "off", "tag_match": "any" } ], "last_7_days": { "levels": [ { "level": "off" } ] }, "level": "off"}No valid bearer token
The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI
document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies
undescribed — a client that has to guess the failure shape ends up parsing the success shape and
reading undefined.
object
object
Stable machine-readable code. Clients branch on this, never on the message.
Operator-facing sentence. Safe to display; never carries an internal error’s own text.
Examplegenerated
{ "error": { "code": "example", "message": "example" }}Role lacks ManageSystem
The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI
document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies
undescribed — a client that has to guess the failure shape ends up parsing the success shape and
reading undefined.
object
object
Stable machine-readable code. Clients branch on this, never on the message.
Operator-facing sentence. Safe to display; never carries an internal error’s own text.
Examplegenerated
{ "error": { "code": "example", "message": "example" }}This core has no write side (skeleton mode)
The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI
document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies
undescribed — a client that has to guess the failure shape ends up parsing the success shape and
reading undefined.
object
object
Stable machine-readable code. Clients branch on this, never on the message.
Operator-facing sentence. Safe to display; never carries an internal error’s own text.
Examplegenerated
{ "error": { "code": "example", "message": "example" }}