folder_running_out
const url = 'https://example.com/api/v1/node-groups/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/node-groups/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”Folder id
Query Parameters
Section titled “Query Parameters”How many days back to read, 7 to 90. Defaults to 30.
Responses
Section titled “Responses”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.
The answer to one question about a folder.
object
Nodes the first pass put at or above 50% in 30 days.
The window each judged node was read over, Unix seconds.
Candidates judged in full — the busiest, at most 20.
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.
The judged nodes, those with a hit first.
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.
Nodes in the folder and every folder beneath it.
Nodes that reported any memory, disk or CPU percentage in the last hour.
Candidates not judged because 20 were. Never read these as fine.
What is being asked. One question in Inc.1.
Unix seconds.
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
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 folder, or not one this caller may see
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" }}