Skip to content

List the nodes' connected periods

GET
/api/v1/node-connections
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).

hours
integer
>= 1 <= 720

Success.

Media typeapplication/json
object
window_hours
required
integer
>= -9007199254740991 <= 9007199254740991
since
required
string format: date-time
until
required
string format: date-time
watching_since
required

When the controller now running started watching.

string format: date-time
planned_restart_minutes
required

[GPU-210] How long a node may stay away after a restart its driver change asked for.

integer
>= -9007199254740991 <= 9007199254740991
nodes
required
Array<object>
object
node_id
required
string
lost_links_24h
required

Lost links of the last 24 h, whatever the window ([GPU-169]).

integer
>= -9007199254740991 <= 9007199254740991
unstable
required

It lost its link often enough in the last 24 h to be unstable ([GPU-169]).

boolean
connected_share
required

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.

number | null
periods
required
Array<object>
object
from
required

Start of the period, clipped to the window.

string format: date-time
to
required
Any of:
string format: date-time
connected_cause
required
Any of:
string
Allowed values: first_registration stop_requested link_lost controller_stopped
disconnected_cause
required
Any of:
string
Allowed values: first_registration stop_requested link_lost controller_stopped driver_change
driver_target
required

The driver a driver_change restart installs; null otherwise.

string | null
clipped_start
required

The period began before the window.

boolean
Example
{
"nodes": [
{
"periods": [
{
"connected_cause": "first_registration",
"disconnected_cause": "first_registration"
}
]
}
]
}

Error codes: validation_error.

Media typeapplication/json
object
error
required
object
code
required

Stable snake_case code to branch on.

string
message
required

A sentence to show a person.

string
details

Optional structured context.

fix

Optional place where the problem is fixed.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": "example",
"fix": "example"
}
}

Error codes: auth_required.

Media typeapplication/json
object
error
required
object
code
required

Stable snake_case code to branch on.

string
message
required

A sentence to show a person.

string
details

Optional structured context.

fix

Optional place where the problem is fixed.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": "example",
"fix": "example"
}
}

Error codes: forbidden.

Media typeapplication/json
object
error
required
object
code
required

Stable snake_case code to branch on.

string
message
required

A sentence to show a person.

string
details

Optional structured context.

fix

Optional place where the problem is fixed.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": "example",
"fix": "example"
}
}

Error codes: rate_limited.

Media typeapplication/json
object
error
required
object
code
required

Stable snake_case code to branch on.

string
message
required

A sentence to show a person.

string
details

Optional structured context.

fix

Optional place where the problem is fixed.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": "example",
"fix": "example"
}
}