Skip to content

List a system's effective metrics

GET
/systems/{name}/metrics
curl --request GET \
--url https://example.com/api/v1/systems/example/metrics

Every metric the system’s standard declares, resolved to the newest observed or calculated sample across its live instances (instance names the one shown, instance_count counts them) or the contract default until one arrives (is_sampled marks a live series), plus any metric sampled directly on the system (from_contract false). Gated by system:read; an out-of-scope system is a non-disclosing 404.

name
required

The system’s name, or a dotted address (e.g. boi.17c.$sys.av)

string

The system’s name, or a dotted address (e.g. boi.17c.$sys.av)

OK

Media type application/json
object
$schema

A URL to the JSON Schema for this object.

string format: uri
metrics
required
Array<object> | null
object
data_type
required

The numeric value type, from the metric catalog

string
default_value

The contract default; omitted when the contract sets none

from_contract
required

True when the owner’s classifier declares the metric; false for a series landing directly on the owner

boolean
instance
required

The instance the shown sample came from (ADR-0456): for an observed sample the endpoint that collected it, empty for the owner-level series (a calculated sample, or a push naming no endpoint) and when nothing is sampled

string
instance_count
required

How many live instances of the metric hold a sample on this owner (a deleted endpoint’s frozen reading is not counted); the shown sample is the newest of them. 0 when nothing is sampled

integer format: int64
instances

Each live instance’s latest sample, newest first; present only when instance_count is above 1, so a single-instance metric carries none

Array<object> | null
object
endpoint
required

True when the instance names an endpoint the owner has; false for the owner-level series and an instance a push named

boolean
instance
required

The instance: the endpoint that collected the sample, or empty for the owner-level series

string
ts
required

When that sample was taken

string format: date-time
value
required

That instance’s latest sample

is_sampled
required

True when the series holds an observed or calculated sample

boolean
label

The metric’s human label; omitted when unset

string
metric_type_id
required

The catalog metric’s uuid, the stable form of metric_type_name

string
metric_type_name
required

The catalog metric name

string
required
required

Whether the contract requires the metric; always false off-contract

boolean
sample_value

The series’ latest sample; omitted when none has arrived

source_rule

The calc rule the latest sample was derived by, by the name it was written under; absent for any other sample

string
source_rule_id

That calc rule’s uuid, the stable form of source_rule

string
unit

The display unit of the series (ms, dB, percent), from the metric catalog; omitted when the type names none

string
value

The effective value: the latest sample, or the contract default until one arrives

system
required
string

Example

{
"$schema": "/api/v1/schemas/SystemMetricsOutputBody.json"
}

Error

Media type application/problem+json
object
$schema

A URL to the JSON Schema for this object.

string format: uri
detail

A human-readable explanation specific to this occurrence of the problem.

string
errors

Optional list of individual error details

Array<object> | null
object
location

Where the error occurred, e.g. ‘body.items[3].tags’ or ‘path.thing-id’

string
message

Error message text

string
value

The value at the given location

instance

A URI reference that identifies the specific occurrence of the problem.

string format: uri
status

HTTP status code

integer format: int64
title

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

string
type

A URI reference to human-readable documentation for the error.

string format: uri
default: about:blank

Example

{
"$schema": "/api/v1/schemas/ErrorModel.json",
"detail": "Property foo is required but is missing.",
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "about:blank"
}