observability
A sandbox's CPU, memory and measured waiting over time, and its latest reading.
CPU is measured, not estimated: the machine's CPU time between two host readings, as a percent of the sandbox's vCPUs and as cores. Memory is the machine's resident memory. The host reads every running sandbox every minute by default. range picks the window and bucket: 15m (10 s buckets), 1h (20 s buckets), 6h (120 s buckets), 24h (480 s buckets), 7d (3600 s buckets), 30d (3600 s buckets). Readings are kept 24 hours; hourly averages and peaks 30 days. A paused or stopped sandbox has no new readings.
get/v1/sandboxes/{id}/metrics
Request
- Base URL: https://api.withruntime.com
- URL: https://api.withruntime.com/v1/sandboxes/{id}/metrics
- Auth: HTTP bearer
Path parameters
idstring required
Resource identifier (UUID).
Query parameters
range'15m' | '1h' | '6h' | '24h' | '7d' | '30d'
Response
Success
Changes
No recorded changes to this operation across all 1 revision of this API.