Read resource metrics history
metrics.historySlide a bounded observation window over an authorized resource's CPU, memory, network, and pod metrics. The platform selects a safe storage resolution and reports it in the result.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"end": "2026-07-22T12:00:00Z",
"window": "7d",
"resource_id": "resource-id"
},
"name": "metrics.history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | RFC3339 window end time; defaults to now | |
| window | No | sliding observation window: live, 1h, 6h, 24h, 7d, or 30d; defaults to 1h | |
| resource_id | Yes | authorized resource identifier | |
| organization_id | No | organization membership to use for this call; omit only when the account has one current membership |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| history | Yes |