Skip to content

running_out

GET
/api/v1/nodes/{node_id}/investigate/running-out
curl --request GET \
--url https://example.com/api/v1/nodes/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/investigate/running-out \
--header 'Authorization: Bearer <token>'
node_id
required
string format: uuid

Node id

days
integer | null format: int32

How many days back to read, 7 to 90. Defaults to 30.

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.

Media typeapplication/json

The answer to one question about one node.

object
from
required

The window read, Unix seconds.

integer format: int64
hypotheses
required
Array<object>

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
evidence
required
Array<object>

One series behind a hypothesis.

object
current

The latest value, in percent.

number | null format: double
days_to_target

Days until the series reaches the target, when it is climbing.

number | null format: double
ifindex

The port, for a link.

integer | null format: int32
label

The port’s name, for a link.

string | null
metric
required

The metric read (a derived one is computed from its two inputs).

string
reason
required

Why a series got its verdict.

string
Allowed values: already_over reaches leak not_reaching too_few_points too_few_days
row

The table row (filesystem, memory pool) the series is for, when the metric has rows.

integer | null format: int64
slope_per_day

How fast the series climbs, in percentage points per day.

number | null format: double
target
required

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.

number format: double
verdict
required

The answer for one series, and for one hypothesis.

string
Allowed values: hit miss unknown
hypothesis
required

One thing a question checks.

string
Allowed values: memory disk cpu link_bandwidth
verdict
required

The answer for one series, and for one hypothesis.

string
Allowed values: hit miss unknown
monitoring_gaps
required

Where collection itself stopped inside the window.

Array<object>

A span in which the node’s pool had no live poller, so missing samples are missing collection.

object
from_ms
required

Unix milliseconds.

integer format: int64
to_ms
required

Unix milliseconds.

integer format: int64
node_id
required
string format: uuid
question
required

What is being asked. One question in Inc.1.

string
Allowed values: running_out
to
required

Unix seconds.

integer format: int64
Example
{
"hypotheses": [
{
"evidence": [
{
"reason": "already_over",
"verdict": "hit"
}
],
"hypothesis": "memory",
"verdict": "hit"
}
],
"question": "running_out"
}

days outside 7 to 90

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

Not signed in

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

Missing View

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

No such node, or the node is outside the caller’s scope

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

Skeleton mode: no database

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