Sign Up

System

GET
/system/metrics

Returns one RFC 3339 metrics snapshot: logical CPU count, sampled CPU utilization, guest memory usage, and disk usage for the filesystem containing the sandbox work directory.

Response Body

application/json
  1. response

One guest-sampled resource snapshot.

cpuCount*integer

Logical CPU count visible inside the sandbox.

Formatint32
Range0 <= value
cpuUtilization*number

Fraction of total CPU capacity in use across all CPUs, clamped to 0..=1.

Formatdouble
diskTotalBytes*integer

Total bytes on the filesystem containing the sandbox work directory.

Formatint64
Range0 <= value
diskUsageBytes*integer

Used bytes on the filesystem containing the sandbox work directory.

Formatint64
Range0 <= value
memoryTotalBytes*integer

Total guest memory in bytes.

Formatint64
Range0 <= value
memoryUsageBytes*integer

Bytes of guest memory currently in use (total - available).

Formatint64
Range0 <= value
timestamp*string

Snapshot time as an RFC 3339 UTC timestamp.

curl -X GET 'http://sandbox:2280/system/metrics'
{  "cpuCount": 0,  "cpuUtilization": 0.1,  "diskTotalBytes": 0,  "diskUsageBytes": 0,  "memoryTotalBytes": 0,  "memoryUsageBytes": 0,  "timestamp": "string"}