get_host_stats
Retrieve CPU and memory usage statistics for an XCP-ng host across a selected time range, enabling capacity planning and performance monitoring.
Instructions
Get CPU and memory usage statistics for an XCP-ng host over a time period. Useful for capacity planning and performance monitoring.
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": "get_host_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Host UUID or Xen Orchestra object ID | |
| granularity | No | Time granularity for statistics. 'seconds' = last 10 min, 'minutes' = last 2 hrs, 'hours' = last 1 week, 'days' = last year. Default: minutes. | minutes |