Skip to main content

cdn_network_analytics_adaptive_groups

Analytics resource

This is a time-bounded analytics resource. Queries against it differ from typical CRUD resources in a few ways:

  • since and until are required. Both are RFC3339 timestamps and define the analytics window (e.g. since = '2026-05-28T00:00:00Z', until = '2026-05-29T00:00:00Z'). Queries without them will fail.
  • Row cap via limit. The limit parameter (default 100) bounds the response. Widen the time window or raise limit to return more rows.
  • Token scope. Cloudflare's analytics endpoints require an API token with Account -> Analytics -> Read permission, which is broader than typical zone-scoped tokens. A token without it will return empty results.

Creates, updates, deletes, gets or lists a cdn_network_analytics_adaptive_groups resource.

Overview

Namecdn_network_analytics_adaptive_groups
TypeResource
Idcloudflare.cache.cdn_network_analytics_adaptive_groups

Fields

The following fields are returned by SELECT queries:

Response

NameDatatypeDescription
ip_protocol_namestringName of the L4 protocol (TCP / UDP / ICMP / GRE / etc.).
bitsintegerSum of bits received.
colo_codestringIATA code of the receiving Cloudflare datacenter.
colo_countrystringCountry of the receiving datacenter.
datetimestring (date-time)
destination_countrystringCountry of the destination IP.
directionstringPacket direction relative to the customer network.
packetsintegerSum of packets received.
source_countrystringCountry of the source IP.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_tag, since, untillimitCloudflare CDN edge network-layer analytics for an account, grouped by colo, source/destination country, packet direction, and IP protocol. Per-tuple totals for bits and packets received at the edge.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
account_tagstringCloudflare account ID (the 32-char hex tag).
sincestring (date-time)Lower bound (inclusive). RFC3339.
untilstring (date-time)Upper bound (exclusive). RFC3339.
limitintegerMaximum dimension-tuple rows per call.

SELECT examples

Cloudflare CDN edge network-layer analytics for an account, grouped by colo, source/destination country, packet direction, and IP protocol. Per-tuple totals for bits and packets received at the edge.

SELECT
ip_protocol_name,
bits,
colo_code,
colo_country,
datetime,
destination_country,
direction,
packets,
source_country
FROM cloudflare.cache.cdn_network_analytics_adaptive_groups
WHERE account_tag = '{{ account_tag }}' -- required
AND since = '{{ since }}' -- required
AND until = '{{ until }}' -- required
AND limit = '{{ limit }}'
;