List the nodes' connected periods
const url = 'https://gpu-kitchen.example.lan/api/v1/node-connections';const options = {method: 'GET', headers: {cookie: 'gpuk_session=<gpuk_session>'}};
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://gpu-kitchen.example.lan/api/v1/node-connections \ --cookie gpuk_session=<gpuk_session>Every node with a connection record in or before the window, with its connected periods over the last hours (24 by default, 720 at most).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Success.
object
When the controller now running started watching.
[GPU-210] How long a node may stay away after a restart its driver change asked for.
object
Lost links of the last 24 h, whatever the window ([GPU-169]).
It lost its link often enough in the last 24 h to be unstable ([GPU-169]).
Percent of the observed window it was connected, one decimal: the time before its first registration and the stretches nobody watched are left out. Null when nothing was observed.
object
Start of the period, clipped to the window.
The driver a driver_change restart installs; null otherwise.
The period began before the window.
Example
{ "nodes": [ { "periods": [ { "connected_cause": "first_registration", "disconnected_cause": "first_registration" } ] } ]}Error codes: validation_error.
object
object
Stable snake_case code to branch on.
A sentence to show a person.
Optional structured context.
Optional place where the problem is fixed.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example", "fix": "example" }}Error codes: auth_required.
object
object
Stable snake_case code to branch on.
A sentence to show a person.
Optional structured context.
Optional place where the problem is fixed.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example", "fix": "example" }}Error codes: forbidden.
object
object
Stable snake_case code to branch on.
A sentence to show a person.
Optional structured context.
Optional place where the problem is fixed.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example", "fix": "example" }}Error codes: rate_limited.
object
object
Stable snake_case code to branch on.
A sentence to show a person.
Optional structured context.
Optional place where the problem is fixed.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example", "fix": "example" }}