running_out
const url = 'https://example.com/api/v1/nodes/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/investigate/running-out';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/nodes/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/investigate/running-out \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Node id
Query Parameters
Section titled “Query Parameters”How many days back to read, 7 to 90. Defaults to 30.
Responses
Section titled “Responses”Whether the node’s memory, disk, CPU or busiest links are running out: per hypothesis a verdict of hit, miss or unknown, and the series behind it. Each series is judged against the warning bound in force for the node and metric, else the critical one, else 100%. Unknown means too little data, never fine.
The answer to one question about one node.
object
The window read, Unix seconds.
One hypothesis and the series it was judged from. No evidence means the node has no metric for it, and the verdict is then unknown.
object
One series behind a hypothesis.
object
The latest value, in percent.
Days until the series reaches the target, when it is climbing.
The port, for a link.
The port’s name, for a link.
The metric read (a derived one is computed from its two inputs).
Why a series got its verdict.
The table row (filesystem, memory pool) the series is for, when the metric has rows.
How fast the series climbs, in percentage points per day.
The line the series is judged against, in percent: the warning bound in force for this node and metric, else the critical one, else 100.
The answer for one series, and for one hypothesis.
One thing a question checks.
The answer for one series, and for one hypothesis.
Where collection itself stopped inside the window.
A span in which the node’s pool had no live poller, so missing samples are missing collection.
object
Unix milliseconds.
Unix milliseconds.
What is being asked. One question in Inc.1.
Unix seconds.
Example
{ "hypotheses": [ { "evidence": [ { "reason": "already_over", "verdict": "hit" } ], "hypothesis": "memory", "verdict": "hit" } ], "question": "running_out"}days outside 7 to 90
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" }}Not signed in
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" }}Missing View
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 node, or the node is outside the caller’s scope
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: no database
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" }}