Host CPU/load/mem/disk trends for one instance over `[from,to]` at `step`.
const url = 'https://example.com/api/v1/system/hosts/example/metrics/range';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/system/hosts/example/metrics/range \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”core, or the id of a poller the live registry knows
Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Scalar host trends plus a per-mount filesystem trend
The scalar host trends plus a per-mount filesystem trend, all over one window — one round trip per instance/range change.
object
One point of a time series: Unix-seconds timestamp and value.
object
Unix timestamp in seconds.
Sample value.
A per-mount filesystem trend. The frontend derives % from the pair, or shows a bare-bytes trend
when size_bytes is all zero (the database size proxy has no capacity).
object
One point of a time series: Unix-seconds timestamp and value.
object
Unix timestamp in seconds.
Sample value.
One point of a time series: Unix-seconds timestamp and value.
object
Unix timestamp in seconds.
Sample value.
One point of a time series: Unix-seconds timestamp and value.
object
Unix timestamp in seconds.
Sample value.
One point of a time series: Unix-seconds timestamp and value.
object
Unix timestamp in seconds.
Sample value.
One point of a time series: Unix-seconds timestamp and value.
object
Unix timestamp in seconds.
Sample value.
One point of a time series: Unix-seconds timestamp and value.
object
Unix timestamp in seconds.
Sample value.
One point of a time series: Unix-seconds timestamp and value.
object
Unix timestamp in seconds.
Sample value.
Examplegenerated
{ "cpu_pct": [ { "t": 1, "v": 1 } ], "disks": [ { "mount": "example", "size_bytes": [ { "t": 1, "v": 1 } ], "used_bytes": [ { "t": 1, "v": 1 } ] } ], "instance": "example", "load1": [ { "t": 1, "v": 1 } ], "load15": [ { "t": 1, "v": 1 } ], "load5": [ { "t": 1, "v": 1 } ], "mem_total_bytes": [ { "t": 1, "v": 1 } ], "mem_used_bytes": [ { "t": 1, "v": 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" }}No such instance — resolved against the known set before any selector is built
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" }}