Which nodes have (not) reported ICMP within the freshness window — low coverage means the monitoring itself is missing data. Admin-only data source (full inventory).
const url = 'https://example.com/api/v1/fleet/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/fleet/coverage \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Fresh vs total node counts plus the capped stale watchlist
Fleet data-coverage summary: fresh vs total nodes + the stale watchlist.
object
Percent of nodes reporting fresh data (100 when the inventory is empty).
The stale nodes by name, capped at [STALE_WATCHLIST_MAX]; total - fresh is the real
count, so a truncated list is still legible against the totals above it.
A node returning no fresh data (silent failure / blind spot).
object
Examplegenerated
{ "coverage_pct": 1, "fresh": 1, "stale": [ { "name": "example", "node_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" } ], "total": 1}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 the view permission
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" }}Skeleton mode has no inventory to measure coverage against
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" }}