Get DNS Analytics
get_dns_analyticsRetrieve a DNS query analytics summary for a zone, covering query count, response times, and cache performance over a specified period.
Instructions
Get DNS query analytics summary for a zone. Returns aggregate metrics like query count, response times, and cache performance over a time period.
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": {
"zone_id": "<zone_id>"
},
"name": "get_dns_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Sort metrics (prefix with - for descending, e.g., -queryCount) | |
| limit | No | Maximum number of rows to return | |
| since | No | Start time in ISO 8601 format (e.g., 2024-01-01T00:00:00Z) | |
| until | No | End time in ISO 8601 format | |
| filters | No | Filters in Cloudflare analytics filter format (e.g., queryType==A) | |
| metrics | No | Metrics to return (default: all). Options: queryCount, uncachedCount, staleCount, responseTimeAvg, responseTimeMedian, responseTime90th, responseTime99th | |
| zone_id | Yes | The zone ID | |
| dimensions | No | Dimensions to group by. Options: queryName, queryType, responseCode, responseCached, coloName, origin |