Get CDN metrics
get_cdn_metricsGet Anycast CDN metrics for your whole account or a single resource, with flexible period selection and multiple metric types like bandwidth, cache, traffic, and HTTP responses.
Instructions
Get Anycast CDN metrics for the whole account or a single resource. Select a period either with period+date (e.g. period='month', date='2026-08-01') or with from+to timestamps. Metric types: bandwidth, cache, cache_requests, responses (HTTP codes), traffic, hybrid, cloud_storage.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Period end (use with from) | |
| date | No | Date inside the period, e.g. '2026-08-01' | |
| from | No | Period start, e.g. '2026-08-01 00:00:00 UTC' (use with to) | |
| type | No | Metrics type | |
| scale | No | Data point granularity. minute: period <= day; hour: period <= month. | |
| period | No | Period length (use with date) | |
| domain_id | No | Filter by custom domain ID | |
| region_id | No | Filter by region ID | |
| resource_id | No | aCDN resource ID. Omit for account-wide metrics. |