Skip to content

folder_running_out

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

Folder id

days
integer | null format: int32

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

Whether anything is running out on the nodes of this folder and every folder beneath it. A first pass reads each node’s memory, disk and CPU percentages now and a week ago, and its ports’ current traffic; the nodes it puts at 50% or more in 30 days are judged exactly as the single-node question judges them, busiest first, at most 20. The counts say how many nodes were read, how many were candidates and how many candidates were not judged.

Media typeapplication/json

The answer to one question about a folder.

object
candidates
required

Nodes the first pass put at or above 50% in 30 days.

integer
from
required

The window each judged node was read over, Unix seconds.

integer format: int64
group_id
required
string format: uuid
judged
required

Candidates judged in full — the busiest, at most 20.

integer
links_screened
required

Whether ports were part of the first pass. False when no port in the folder has a usable speed, or the store did not answer.

boolean
nodes
required

The judged nodes, those with a hit first.

Array<object>

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
nodes_total
required

Nodes in the folder and every folder beneath it.

integer
nodes_with_data
required

Nodes that reported any memory, disk or CPU percentage in the last hour.

integer
not_judged
required

Candidates not judged because 20 were. Never read these as fine.

integer
question
required

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

string
Allowed values: running_out
to
required

Unix seconds.

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

days outside 7 to 90, or too_many_nodes: the folder holds more than 2,000 nodes

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 folder, or not one this caller may see

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