CubePathDOCS
CDN

Get Zone Metrics Summary

get/cdn/zones/{zone_uuid}/metrics/summary

Get summary metrics for a CDN zone: total requests, bandwidth, cache hit rate (HIT over HIT and MISS), error rates and, with compare, the change against the previous period.

Autorización

Authorization
Authorization*string

Bearer YOUR_API_TOKEN con un token de API. También vale la cabecera X-API-Key: YOUR_API_TOKEN.

Parámetros de ruta

zone_uuid*string

Parámetros de consulta

compare?string | null

previous_period adds the change against the period of the same length just before.

Valores"previous_period"
minutes?integer | null

Window in minutes looking back, 60 by default, at most 43200 (30 days). Not with from.

from?string | null

Start of an absolute window: an ISO 8601 date (UTC when it has no zone) or Unix seconds.

to?string | null

End of the absolute window (default now, never later than 30 seconds ago).

country?string | null

Comma-separated ISO country codes.

asn?string | null

Comma-separated AS numbers.

status_range?string | null

2xx, 3xx, 4xx or 5xx.

status?string | null

Comma-separated exact response codes.

cache_status?string | null

HIT or MISS.

device_type?string | null

mobile, desktop or bot.

path_prefix?string | null

Path prefix, for example /assets.

host?string | null

Comma-separated hosts (up to 20), lower case.

method?string | null

Comma-separated HTTP methods (up to 9).

client_ip?string | null

Visitor address. Needs the cdn_visitors:view permission.

referer_host?string | null

Host of the referer, or - for no referer.

http_version?string | null

Comma-separated: 1.0, 1.1, 2, 3.

tls_version?string | null

Comma-separated: 1.0, 1.1, 1.2, 1.3, none.

content_type?string | null

Comma-separated types (up to 10); one ending in / is a family, image/.

pop?string | null

Comma-separated locations (BCN01) or instances (bcn01-2).

rule?string | null

Comma-separated uuids of rules of the zone or names of the system (up to 20).

Respuestas

Successful Response

application/json

from?string | null

Start of the window read (UTC).

to?string | null

End of the window read, excluded (UTC).

zone_uuid*string
domain*string
period_minutes*integer
total_requests*integer
total_bandwidth*integer
cache_hit_rate*number
error_rate*number
cache_hits?integer
Por defecto0
cache_misses?integer
Por defecto0
cache_hit_bytes?integer
Por defecto0
cache_miss_bytes?integer
Por defecto0
cache_byte_hit_rate?number
Por defecto0
error_4xx_rate?number
Por defecto0
error_5xx_rate?number
Por defecto0
previous?CDNSummaryPeriod | null

The summary of the period before (compare=previous_period).

Propiedades (6)
from*string
to*string
total_requests*integer
total_bandwidth*integer
cache_hit_rate*number
error_rate*number
delta?CDNSummaryDelta | null

Change against the period before: percent for the volumes, percentage points for the rates. None when the period before had no request to compare with.

Propiedades (4)
total_requests_pct?number | null
total_bandwidth_pct?number | null
cache_hit_rate_pp?number | null
error_rate_pp?number | null