コンテンツにスキップ

get_alert_grouping

GET
/api/v1/alert-grouping
curl --request GET \
--url https://example.com/api/v1/alert-grouping \
--header 'Authorization: Bearer <token>'

The deployment’s grouping level, its exceptions, and what each level would do to the outage open now

Media typeapplication/json

The deployment’s level, its exceptions, and the preview.

object
exceptions
required

Oldest first.

Array<object>

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
group_ids
required
Array<string>
id
required
string format: uuid
join
required

How group_ids and tags combine when both are named.

string
Allowed values: or and
level
required

How strongly alerts are grouped, weakest first (ADR-236 decision 2).

string
Allowed values: off certain links site
tag_match
required

How the tags combine among themselves (ADR-267): any or all.

string
Allowed values: any all
tags
required
Array<string>
last_7_days
One of:
null
level
required

How strongly alerts are grouped, weakest first (ADR-236 decision 2).

string
Allowed values: off certain links site
now
required

What would happen to the outage open now.

object
down
required

Nodes down now.

integer
notified
required

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.

Array<integer>
wait
required

Whether a border’s notification waits for a failing neighbour to commit (ADR-236 Inc.2).

boolean
Example
{
"exceptions": [
{
"join": "or",
"level": "off",
"tag_match": "any"
}
],
"last_7_days": {
"levels": [
{
"level": "off"
}
]
},
"level": "off"
}

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"
}
}