get_top_consumers
Identify top consumers of a given metric. Query virtual machines with highest CPU, memory, or disk usage to locate capacity bottlenecks.
Instructions
[READ] Query resources with highest consumption of a given metric. Then call get_resource_metrics on a returned id for its history.
Returns a paginated envelope: items, returned, limit, total (null when the API reports no size), truncated, hint. Check truncated before calling this the complete set.
Args: metric_key: Metric to rank by, e.g. cpu|usage_average, mem|usage_average, disk|usage_average. resource_kind: Resource kind to scope the query. Default VirtualMachine. top_n: Number of top consumers to return (max 50). Default 10. target: Aria target name from config; default when omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_n | No | ||
| target | No | ||
| metric_key | No | cpu|usage_average | |
| resource_kind | No | VirtualMachine |