get_routing_coverage
const url = 'https://example.com/api/v1/routing-coverage';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/routing-coverage \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”unreachable (the default), critical, warning or info: the severity of the alert
whose week is drawn. A rule reaches alerts at its own severity and above (ADR-277).
Responses
Section titled “Responses”Every node grouped by the rules that match it, and where their alerts go across the week
Where a deployment’s alerts go across the week (ADR-262 decision 8).
object
The catch-all’s channels, so a stretch drawn as catch_all can be named.
One per set of matching rules and zone, the most nodes first.
The nodes one set of matching rules reaches, and where their alerts go across the week.
object
Up to fifty of them, for naming.
The enabled rules that match these nodes at the asked severity and can ever decide where their alerts go, in rule order (ADR-262 decision 14); empty when none does.
One stretch of the week in which an alert goes to the same place (ADR-262 decision 8). Minutes are counted from Monday 00:00 local time.
object
The channels it goes to; empty when held or going nowhere.
Where an alert goes during a [CoverageSegment].
The rule that decides during the stretch (ADR-266 decision 4): the open rule that sends or
holds, or a closed rule that holds while closed. null when the catch-all takes the alert,
when it is held because no rule is open, and when it goes nowhere.
The zone these nodes keep time in; null for the deployment’s default.
The severity it was drawn for.
Rules whose alerts a lower-severity rule placed above them takes first, on the nodes both
reach (ADR-277 Inc.2). The same whatever severity was asked; empty when the order is safe.
A routing rule whose alerts a rule placed above it takes first, for some of its nodes (ADR-277 Inc.2 decision 14).
object
The rule above it that takes them: the highest-placed one when several do.
How many nodes both rules reach.
The rule that loses the alerts.
Example
{ "rows": [ { "segments": [ { "kind": "rules" } ] } ], "severity": "info"}A severity other than unreachable, critical, warning or info
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" }}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" }}