Metrics and telemetry ›
Get metrics
GET
/v1/metricsWhat each of your sandboxes read at one moment.
RequestTypeScript
- import { Agental } from "agental-sdk";
- const agental = new Agental();
- const metrics = await agental.metrics();
Answer200 OK · MetricsAtMoment
- {
- "at": string,
- "sandboxes": [{
- "sandboxId": string,
- "name": string,
- "size": "tiny" | "small" | "medium" | "large",
- "reading": object,
- }],
- "complete": boolean,
- }
What each of the caller's sandboxes read at one moment.
Query
atstring | The moment to read at. Now when omitted. At most 15 days ago. e.g. "2026-10-14T09:35:00Z" |
Headers
AuthorizationrequiredBearer key | An API key that may make this call. |
Returns
200 What each of the caller's sandboxes read at one moment. A sandbox that was stopped then has a null reading, and so has one that was started less than a minute before.
MetricsAtMoment3 fields
atstring
sandboxesobject[]4 fields
sandboxIdstring
namestring
sizetinysmallmediumlarge
readingobject
completeboolean
False when a server did not answer, so that a sandbox on it has a null reading though it was running.
Errors and other answers
| 400 | at is in the future, or more than 15 days ago. |
| 404 | Not found. |
| 501 | metrics_unavailable sandboxes are not read here. GET /v1/policy says so as metrics. |
| 503 | metrics_unreadable not one of the servers answered for its readings. The sandboxes are as they were. Ask again in a minute. |
Every error answers { "error": { "code", "message" } }; a key without the action a call needs answers 403 key_action_forbidden, naming it.