Skip to main content
GET
/
sandboxes
/
{sandboxID}
/
metrics
cURL
curl --request GET \
  --url https://api.e2b.app/sandboxes/{sandboxID}/metrics \
  --header 'X-API-Key: <api-key>'
[
  {
    "timestamp": "2023-11-07T05:31:56Z",
    "timestampUnix": 123,
    "cpuCount": 123,
    "cpuUsedPct": 123,
    "memUsed": 123,
    "memTotal": 123,
    "diskUsed": 123,
    "diskTotal": 123
  }
]

Authorizations

X-API-Key
string
header
required

Path Parameters

sandboxID
string
required

Query Parameters

start
integer<int64>

Unix timestamp for the start of the interval, in seconds, for which the metrics

Required range: x >= 0
end
integer<int64>

Unix timestamp for the end of the interval, in seconds, for which the metrics

Required range: x >= 0

Response

Successfully returned the sandbox metrics

timestamp
string<date-time>
required
deprecated

Timestamp of the metric entry

timestampUnix
integer<int64>
required

Timestamp of the metric entry in Unix time (seconds since epoch)

cpuCount
integer<int32>
required

Number of CPU cores

cpuUsedPct
number<float>
required

CPU usage percentage

memUsed
integer<int64>
required

Memory used in bytes

memTotal
integer<int64>
required

Total memory in bytes

diskUsed
integer<int64>
required

Disk used in bytes

diskTotal
integer<int64>
required

Total disk space in bytes