Get machine usage
instabox_get_machine_usageRetrieve a machine's running, vCPU, memory, and disk usage over a chosen window for billing or cost checks, including deleted machines by ID.
Instructions
Resource usage of one machine over a window (running seconds, vCPU-seconds, GiB-seconds of memory and disk), for billing or cost checks. Defaults to the current UTC month; the window may span at most 366 days. Works for deleted machines too (by ID).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "instabox_get_machine_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Machine ID (m_...) or its unique name | |
| to | No | RFC 3339 window end (default: now) | |
| from | No | RFC 3339 window start (default: start of this UTC month) |