Get Usage Statistics
get_usage_statisticsRetrieve current-project Nova allocation-hours and period usage statistics—servers, RAM MB-hours, CPU hours, disk GB-hours—to generate project usage reports without mixing live snapshots.
Instructions
Get current-project Nova allocation-hours and separate current snapshots.
Functions:
Show project usage statistics over a specified time period
Display servers, RAM MB-Hours, CPU Hours, and Disk GB-Hours
Provide detailed server usage breakdown when available
Keep current compute/network/storage snapshots separate from period data
Use for project usage reports. Period data comes from Nova simple tenant usage. It measures allocation-hours, not live utilization or monetary charges. For measured CPU/memory utilization or trends, use get_gnocchi_measures. Missing or denied usage API returns failure without synthetic fallback.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_usage_statistics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_date | No | Exclusive end date at UTC midnight (YYYY-MM-DD; defaults to today) | |
| start_date | No | Inclusive start date at UTC midnight (YYYY-MM-DD; defaults to 30 days ago) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |