Read live sandbox resource metrics
Authorization
bearerAuth A RemoteHost API key (rh_sk_...) or a user session token.
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/sandboxes/string/metrics/live"{ "cpuPercent": 0, "memoryTotalGb": 0, "memoryUsedGb": 0, "diskTotalGb": 0, "diskUsedGb": 0, "diskUsedBytes": 0, "diskAvailableBytes": 0, "swapTotalGb": 0, "swapUsedGb": 0, "memoryPressure": { "someAvg10": 0, "someAvg60": 0, "fullAvg10": 0, "fullAvg60": 0 }, "cpuPressure": { "someAvg10": 0, "someAvg60": 0 }, "memoryWarning": { "level": "none", "reason": "string", "suggestedShape": { "vcpu": 0, "memoryGb": 0, "diskGb": 0 } }}Sample and persist sandbox resource metrics POST
Not a read despite the shape: the sample is recorded as a usage event and, for auto-scaling profiles, the resize recommendation is persisted against the sandbox.
Release a session to its native terminal POST
Release an idle managed session to its native terminal without deleting its saved conversation. Requires agent_session.send and bridge v8. Refuses active turns; interrupt first. Returns resume arguments only after the bridge and agent processes exit. Retry on an uncertain response; repeated release is safe. Close manual CLI ownership before using recover to restore remote control. Native terminal surfaces are unsupported.