Get sandbox metrics
Gets a sandbox’s request, error, CPU, and memory metrics over time.
Authorizations
Send Authorization: Bearer <api_key>. The legacy Authorization: Api-Key <api_key> scheme is also accepted.
Headers
Optional team ID. Must match the team_id query parameter when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.
1Path Parameters
Immutable sandbox name returned by creation.
1"baseten-api-review-0916"
Query Parameters
Optional team ID. Must match X-Team-Id when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.
1Defaults to CURRENT, which rejects start_epoch_millis and end_epoch_millis. SERIES uses a server-selected step of 30 seconds up to 2 hours, 60 seconds up to 1 day, 600 seconds up to 3 days, and 3600 seconds beyond 3 days.
CURRENT, SUMMARY, SERIES Unix milliseconds. Defaults to one hour before end; SERIES snaps outward.
x >= 0Exclusive end in Unix milliseconds, default now. Maximum aligned window is 7 days.
x >= 0Metric names in response order. Omit to request all three signals.
1 - 3 elementsbaseten_sandbox_requests_total, baseten_sandbox_cpu_usage_cores, baseten_sandbox_memory_bytes Response
Index-aligned sandbox metrics.
Returned window start, snapped outward in SERIES. Equal to end for CURRENT.
Returned exclusive window end, snapped outward in SERIES. Snapshot timestamp for CURRENT.
CURRENT, SUMMARY, SERIES Seconds per SERIES interval; null in CURRENT and SUMMARY.
1 - 3 elements10000