コンテンツにスキップ

Alert fires bucketed weekday×hour over the last `days` (for the calendar heatmap).

GET
/api/v1/alerts/calendar
curl --request GET \
--url https://example.com/api/v1/alerts/calendar \
--header 'Authorization: Bearer <token>'
days
integer format: int64

Weekday×hour fire counts; empty when this deployment keeps no history

Media typeapplication/json
Array<object>

One weekday×hour heatmap cell.

object
count
required
integer format: int64
dow
required

0 = Sunday … 6 = Saturday (UTC).

integer format: int32
hour
required

Hour of day 0–23 (UTC).

integer format: int32
Examplegenerated
[
{
"count": 1,
"dow": 1,
"hour": 1
}
]

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 the read permission

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