get_resource_metrics
Fetch historical time-series metric statistics for a VMware resource, returning timestamped data points. Use to analyze trends and monitor resource performance over time.
Instructions
[READ] Fetch time-series metric statistics for a resource.
Returns a dict keyed by metric key, each mapping to a list of {timestamp_ms, value} points — not an envelope. Use this for history; for a single current score use get_resource_health instead. A key the API has no data for does not appear in the result at all, so check which keys came back before reporting a metric as zero.
Args: resource_id: The resource UUID. metric_keys: Metric keys to fetch, e.g. ["cpu|usage_average", "mem|usage_average", "disk|usage_average", "net|usage_average"]. hours: Number of hours of history to retrieve. Default 1. rollup_type: Aggregation type: AVG, MAX, MIN, SUM, COUNT, LATEST. Default AVG. target: Aria target name from config; default when omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | ||
| target | No | ||
| metric_keys | Yes | ||
| resource_id | Yes | ||
| rollup_type | No | AVG |