Get deployment stats
GET
CoderSessionTokenheader
Coder-Session-Token<token>OK
application/json- response
aggregated_from?stringAggregatedFrom is the time in which stats are aggregated from. This might be back in time a specific duration or interval.
Format
date-timecollected_at?stringCollectedAt is the time in which stats are collected at.
Format
date-timenext_update_at?stringNextUpdateAt is the time when the next batch of stats will be updated.
Format
date-timesession_count?workspaces?The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.
curl -X GET \ "$CODER_URL/api/v2/deployment/stats" \ -H "Coder-Session-Token: $CODER_SESSION_TOKEN"Example Response200
{ "aggregated_from": "2019-08-24T14:15:22Z", "collected_at": "2019-08-24T14:15:22Z", "next_update_at": "2019-08-24T14:15:22Z", "session_count": { "apps": { "property1": { "count": 0, "display_name": "string", "family": "vscode", "icon": "string" }, "property2": { "count": 0, "display_name": "string", "family": "vscode", "icon": "string" } }, "jetbrains": 0, "reconnecting_pty": 0, "ssh": 0, "vscode": 0 }, "workspaces": { "building": 0, "connection_latency_ms": { "p50": 0, "p95": 0 }, "failed": 0, "pending": 0, "running": 0, "rx_bytes": 0, "stopped": 0, "tx_bytes": 0 }}