chart
Visualize a NextDNS profile's analytics as a PNG with line trends over time or top-row bar rankings. Use it to compare trends or rankings; it changes nothing.
Instructions
Draw a profile's analytics as a PNG picture: lines over time (up to 6) or bars of the top rows (up to 20), for the same reports as analytics. Use it when the user wants to see a trend or a ranking; use analytics for exact numbers and more rows. Changes nothing. Returns a short text with the totals plus the image, or only a note when there were no queries in that time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Bars only: how many rows, up to 20. | |
| device | No | Only this device: a device ID from the devices report, or __UNIDENTIFIED__. | |
| report | No | Which report: status, domains, reasons, ips, devices, protocols, queryTypes, ipVersions, dnssec, encryption or destinations. | status |
| status | No | domains report only: just blocked, allowed or default queries. | |
| profile | No | The profile's ID or name. Leave empty for the only profile, or the default one. | |
| to_date | No | Where to stop, not included: an ISO date, Unix time or relative like -1h. Empty means now. | |
| interval | No | With over_time: the step between points, like 1h or 1d. | |
| timezone | No | With over_time: the time zone for the steps, like Europe/Lisbon. | |
| from_date | No | Where to start, included: an ISO date, Unix time or relative like -6h, -7d or -1M. | -7d |
| over_time | No | true: lines over time (up to 6). false: bars of the top rows. |