SandboxesMonitoring

Stream live sandbox stats

Stream the CPU, memory and disk usage of a sandbox as server-sent events. The stream sends the last sample at once when it is at most 15 s old, then a new sample about every 3 s while the sandbox runs. A ping event arrives every 25 s when no sample arrives.

GET
/v1/sandboxes/{idOrName}/stats/live
AuthorizationBearer <token>

API key starting with tektona_. Create one at app-dev.tektona.ai under API Keys.

In: header

Path Parameters

idOrName*string

Sandbox ID (ULID) or name

Query Parameters

org?string

Required when the path names the sandbox by name.

project?string

Required when the path names the sandbox by name.

Response Body

text/event-stream

application/problem+json

curl -X GET "https://example.com/v1/sandboxes/string/stats/live"
[  {    "data": {},    "event": "ping",    "id": 0,    "retry": 0  }]