---
title: "Read sandbox measurements and 24 hour resource history"
method: GET
path: "/v1/sandboxes/{id}/metrics"
tags: ["Sandboxes"]
---

# Read sandbox measurements and 24 hour resource history

`GET /v1/sandboxes/{id}/metrics`

## Request

- Base URL: `/` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/v1/sandboxes/{id}/metrics`
- Auth: HTTP bearer

Samples arrive approximately every 30 seconds while authorized runtime authority is active. Raw samples are retained for 7 days. Latest is the newest retained sample and can be stale, so inspect observed_at. History covers the last 24 hours. Resource measurements never create billing authority.

## Path parameters

- `id` string, required

## Response `200`

Success

- SandboxMetricReport
  - `latest` SandboxMetricObservation, required: Server timestamp and current runtime generation. CPU is a cumulative runtime counter. RSS sums guest process resident pages and can double count shared pages. Disk measures regular file logical bytes under the workspace. Missing or failed measurements remain null.
    - `sequence` integer, required
    - `generation` integer, required
    - `observed_at` string, date-time, required
    - `cpu_seconds` number, nullable, required
    - `rss_bytes` integer, nullable, required
    - `disk_used_bytes` integer, nullable, required
    - `egress_sent_bytes` integer, nullable, required
    - `egress_received_bytes` integer, nullable, required
    - `active_execs` integer, nullable, required
  - `history` SandboxMetricObservation[], required
    - `sequence` integer, required
    - `generation` integer, required
    - `observed_at` string, date-time, required
    - `cpu_seconds` number, nullable, required
    - `rss_bytes` integer, nullable, required
    - `disk_used_bytes` integer, nullable, required
    - `egress_sent_bytes` integer, nullable, required
    - `egress_received_bytes` integer, nullable, required
    - `active_execs` integer, nullable, required
  - `rollup_24h` SandboxMetricRollup, required: Measured 24 hour peaks and average RSS. CPU and egress are differences between the oldest and newest available samples within each runtime generation. No estimate fills gaps or single-sample intervals.
    - `samples` integer, required
    - `peak_rss_bytes` number, nullable, required
    - `average_rss_bytes` number, nullable, required
    - `peak_disk_used_bytes` number, nullable, required
    - `peak_active_execs` number, nullable, required
    - `cpu_seconds` number, nullable, required
    - `egress_sent_bytes` number, nullable, required
    - `egress_received_bytes` number, nullable, required
  - `last_output_at` string, date-time, nullable, required
  - `meter` Meter, required
    - `settled_usd` number
    - `accruing_usd` number
    - `accruing_rate_usd_hour` number
    - `total_now_usd` number
    - `as_of` string, date-time
    - `final_charge_usd` number: Immutable aggregate lifetime compute charge for a terminal workload. Present only after every customer usage clock is settled and complete initial compute cost coverage is available across the workload scope. This total is independent of the current billing month. Retaining files can continue to incur separate usage charges, which are excluded from this fixed compute total.
    - `charge_state` 'estimated' | 'final': Compute charge finality for workloads using metered pricing. Estimated means compute usage is still accruing, terminal usage is still settling, or required initial compute cost coverage is incomplete. Final means final_charge_usd is frozen. Retained-file usage can continue after compute is final. Historical workload contracts may omit this field.
    - `compute_settled_usd` number: Settled compute charges in this billing period.
    - `platform_fee_settled_usd` number: Settled platform fees in this billing period.
    - `subscription_settled_usd` number: Settled subscription charges in an account meter. Zero in workload meters.
    - `storage_settled_usd` number: Settled saved-file charges earned in this UTC billing month in an account meter. Already included in settled_usd. Zero in workload and workspace compute-session meters.
    - `model_settled_usd` number: Settled managed model charges in this billing period in an account meter. Already included in settled_usd. Zero in workload and workspace compute-session meters.
    - `shared_settled_usd` number: Settled shared service charges in this billing period in an account meter. Already included in settled_usd. Zero in workload and workspace compute-session meters.
    - `compute_accruing_usd` number: Compute charges accruing at as_of.
    - `platform_fee_accruing_usd` number: Platform fees accruing at as_of.

## Other responses

- `default`: Error. The JSON error and message fields are stable. Additional fields may provide details. Authentication, rate limits, and transient failures apply to all operations.

## Changes

- **2026-10-01** `5805e96227f4`: 1 info
  - added the optional property `meter/shared_settled_usd` to the response with the `200` status
- **2026-10-01** `ba84c74aeec8`: 3 info
  - added the optional property `meter/charge_state` to the response with the `200` status
  - added the optional property `meter/final_charge_usd` to the response with the `200` status
  - added the optional property `meter/model_settled_usd` to the response with the `200` status
- **2026-10-01** `544fef290a54`: 3 warning
  - removed the optional property `meter/charge_state` from the response with the `200` status
  - removed the optional property `meter/final_charge_usd` from the response with the `200` status
  - removed the optional property `meter/model_settled_usd` from the response with the `200` status
- **2026-09-27** `f73dea7ab0c4`: 2 info
  - added the optional property `meter/charge_state` to the response with the `200` status
  - added the optional property `meter/final_charge_usd` to the response with the `200` status
- **2026-09-27** `c27e8c7c4e1f`: 1 info
  - added the optional property `meter/model_settled_usd` to the response with the `200` status

[Operation history](https://skmtc.dev/nodus-compute/apis/nodus-infrastructure-execution-api/changes/v1/sandboxes/:id/metrics/get.md)

---

[API](https://skmtc.dev/nodus-compute/apis/nodus-infrastructure-execution-api.md) - [All operations](https://skmtc.dev/nodus-compute/apis/nodus-infrastructure-execution-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nodus-compute/apis/nodus-infrastructure-execution-api/revisions/a59210899d95?raw)
