コンテンツにスキップ

get_routing_coverage

GET
/api/v1/routing-coverage
curl --request GET \
--url https://example.com/api/v1/routing-coverage \
--header 'Authorization: Bearer <token>'
severity
string | null

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).

Every node grouped by the rules that match it, and where their alerts go across the week

Media typeapplication/json

Where a deployment’s alerts go across the week (ADR-262 decision 8).

object
catch_all
required

The catch-all’s channels, so a stretch drawn as catch_all can be named.

Array<string>
rows
required

One per set of matching rules and zone, the most nodes first.

Array<object>

The nodes one set of matching rules reaches, and where their alerts go across the week.

object
node_count
required
integer
node_ids
required

Up to fifty of them, for naming.

Array<string>
rule_ids
required

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.

Array<string>
segments
required
Array<object>

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
channel_ids
required

The channels it goes to; empty when held or going nowhere.

Array<string>
end
required
integer format: int32
kind
required

Where an alert goes during a [CoverageSegment].

string
Allowed values: rules catch_all held nowhere
rule_id

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.

string | null format: uuid
start
required
integer format: int32
zone

The zone these nodes keep time in; null for the deployment’s default.

string | null
severity
required

The severity it was drawn for.

string
Allowed values: info warning critical unreachable
taken_first
required

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.

Array<object>

A routing rule whose alerts a rule placed above it takes first, for some of its nodes (ADR-277 Inc.2 decision 14).

object
by_rule_id
required

The rule above it that takes them: the highest-placed one when several do.

string format: uuid
node_count
required

How many nodes both rules reach.

integer
rule_id
required

The rule that loses the alerts.

string format: uuid
Example
{
"rows": [
{
"segments": [
{
"kind": "rules"
}
]
}
],
"severity": "info"
}

A severity other than unreachable, critical, warning or info

Media typeapplication/json

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
error
required
object
code
required

Stable machine-readable code. Clients branch on this, never on the message.

string
message
required

Operator-facing sentence. Safe to display; never carries an internal error’s own text.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example"
}
}

No valid bearer token

Media typeapplication/json

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
error
required
object
code
required

Stable machine-readable code. Clients branch on this, never on the message.

string
message
required

Operator-facing sentence. Safe to display; never carries an internal error’s own text.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example"
}
}

Role lacks ManageSystem

Media typeapplication/json

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
error
required
object
code
required

Stable machine-readable code. Clients branch on this, never on the message.

string
message
required

Operator-facing sentence. Safe to display; never carries an internal error’s own text.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example"
}
}

This core has no write side (skeleton mode)

Media typeapplication/json

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
error
required
object
code
required

Stable machine-readable code. Clients branch on this, never on the message.

string
message
required

Operator-facing sentence. Safe to display; never carries an internal error’s own text.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example"
}
}