vs_analytics
Retrieve L4 and L7 performance metrics for a virtual service over the past hour to diagnose throughput or latency issues.
Instructions
[READ] Show performance metrics for one Virtual Service over the last hour.
Queries the AVI analytics collection API with a fixed window: 12 samples at 5-minute granularity. Returns L4 metrics (avg bandwidth, completed and new connections) and L7 metrics (avg client transaction latency, % response errors, total responses). Empty output means the VS had no traffic in the window or analytics collection is disabled — not an error. Use when investigating throughput or latency issues after vs_status shows degraded health; use vs_error_logs for per-request error detail with a configurable time window.
Args: vs_name: Exact Virtual Service name, case-sensitive, as shown by vs_list. Fails with a 'not found' message if no VS matches.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vs_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |