Get a server's load now
/instances/servers/{id}/analytics/read Read: looks, changes nothing. Scopes
The server's latest report: whether it is up, its streams and viewers against its limit, CPU, memory, network traffic (load.bytes_in_rate_bps, load.bytes_out_rate_bps) and version. Figures under load are null until the server has reported them; the history is GET /instances/servers/metrics/?server=<id>. Panel operators only.
Path parameters
idstring (uuid)requiredThe server's id.
Response
200 OK
instance_idstringrequirednamestringrequiredkindstringrequiredpanel- panelstreaming- streaming
One of:
"panel""streaming"domainstringrequiredpublic_urlstring (uri)requiredinternal_urlstring (uri)requiredcapabilitiesstring[]requiredis_enabledbooleanrequiredOperator switch. False ⇒ drained; LB excludes from new streams.
is_healthybooleanrequiredLast heartbeat passed and the node hasn't been demoted.
is_recentbooleanrequiredTrue iff
last_seenis within the last 2 minutes.serves_streamsbooleanrequiredlast_seenstring (date-time)requiredcan be nullproxiedbooleanrequiredWhether the server is reached through its web address (Proxied) or directly (Direct).
ping_msintegerrequiredcan be nullRound-trip-ish liveness number derived from
now() - last_seen. None when the node has never heartbeated.current_streamsintegerrequiredcurrent_sessionsintegerrequiredActive client sessions (heartbeat-reported).
max_streamsintegerrequiredversionstringrequiredThe release of the streaming engine the server runs.
loadobjectrequiredThe server's load.
cpu_pctnumberrequiredcan be nullcpu_coresintegerrequiredcan be nullram_pctnumberrequiredcan be nullram_total_bytesintegerrequiredcan be nullram_used_bytesintegerrequiredcan be nullbytes_in_totalintegerrequiredcan be nullbytes_out_totalintegerrequiredcan be nullbytes_in_rate_bpsintegerrequiredcan be nullbytes_out_rate_bpsintegerrequiredcan be nulluptime_secondsintegerrequiredcan be nullpipeline_failures_last_5mintegerrequiredcan be nullsweeper_last_pass_age_secsintegerrequiredcan be nullengine_stops_in_flightintegerrequiredcan be null
Errors
- 401 No credential, or one that is wrong, expired or revoked.
- 403 The account, or the key's or app's scopes, may not do this.
- 404 Nothing with this id, or nothing the account can see.
- 429 Slow down: wait the seconds in the Retry-After header, then try again.