unifi_get_isp_metrics
Retrieve WAN/ISP health and traffic metrics for all sites with 5-minute or 1-hour granularity. Choose a duration or custom timestamp range.
Instructions
Get WAN/ISP health and traffic metrics for every site linked to this API key's account, at 5-minute or 1-hour granularity. 5-minute data is retained at least 24h; 1-hour data at least 30 days. Provide either duration alone, or beginTimestamp/endTimestamp (not both).
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": {
"type": "<type>"
},
"name": "unifi_get_isp_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Metric interval. | |
| duration | No | Time range ending now. '24h' for 5m metrics; '7d' or '30d' for 1h metrics. Cannot be combined with beginTimestamp/endTimestamp. | |
| endTimestamp | No | Latest timestamp to retrieve, RFC3339. Cannot be combined with duration. | |
| beginTimestamp | No | Earliest timestamp to retrieve, RFC3339. Cannot be combined with duration. |