Skip to main content
GET
Get the stats of the service

Authorizations

X-Access-Token
string
header
required

Sandbox access token (envdAccessToken) for authenticating requests to a running sandbox. Returned by: POST /sandboxes (on create), POST /sandboxes/{sandboxID}/connect (on connect), POST /sandboxes/{sandboxID}/resume (on resume), and GET /sandboxes/{sandboxID} (for running or paused sandboxes).

Headers

E2b-Sandbox-Id
string
required

Identifier of the target sandbox. Routes the request to that sandbox's envd over the shared sandbox host.

E2b-Sandbox-Port
integer
default:49983
required

Port envd listens on inside the sandbox (default 49983).

Response

The resource usage metrics of the service

Resource usage metrics

ts
integer<int64>

Unix timestamp in UTC for current sandbox time

cpu_count
integer

Number of CPU cores

cpu_used_pct
number<float>

CPU usage percentage

mem_total
integer<int64>

Total virtual memory in bytes

mem_used
integer<int64>

Used virtual memory in bytes

disk_used
integer<int64>

Used disk space in bytes

disk_total
integer<int64>

Total disk space in bytes

mem_used_mib
integer<int64>

Used virtual memory in MiB

mem_total_mib
integer<int64>

Total virtual memory in MiB