Edge traffic for the workspace or one application, with its busiest domains
Requests the CustomDomain™ edge served for the tenant's domains, by status class, and the bytes it relayed to visitors, as a series (one point per hour for 24h and 7d, per UTC day for 30d and 90d, every bucket present) with totals and the busiest domains. Only traffic that passes through the edge is counted: a domain whose records point at the integrator's own servers (connected for DNS only) never appears. Counts arrive from the edge once a minute. Hourly figures are kept 14 days, daily figures 400 days. API key; any member role; app_id narrows to one application of the key's tenant (another tenant's application is a 404).
Authorization
apiKey Long-lived tenant API key, cd_live_… (production) or cd_test_… (staging, development), stored hashed. Keys created before the switch to cd_ start with sk_live_… / sk_test_… and are still accepted. Scoped to the owning application's tenant.
In: header
Query Parameters
"7d"Value in
- "24h"
- "7d"
- "30d"
- "90d"
How many of the busiest domains to return.
1 <= value <= 5010Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/traffic"{ "application_id": "string", "range": "24h", "granularity": "hour", "from": "2019-08-24T14:15:22Z", "to": "2019-08-24T14:15:22Z", "totals": { "requests": 0, "status": { "1xx": 0, "2xx": 0, "3xx": 0, "4xx": 0, "5xx": 0 }, "bytes_out": 0, "error_rate": 0, "domains_with_traffic": 0 }, "series": [ { "t": "2019-08-24T14:15:22Z", "requests": 0, "status": { "1xx": 0, "2xx": 0, "3xx": 0, "4xx": 0, "5xx": 0 }, "bytes_out": 0, "error_rate": 0 } ], "top_domains": [ { "connection_id": "string", "domain": "string", "application_id": "string", "requests": 0, "status": { "1xx": 0, "2xx": 0, "3xx": 0, "4xx": 0, "5xx": 0 }, "bytes_out": 0, "error_rate": 0, "share": 0, "last_request_at": "2019-08-24T14:15:22Z" } ], "retention": { "hourly_days": 0, "daily_days": 0 }}{ "code": "string", "title": "string", "details": "string"}{ "code": "string", "title": "string", "details": "string"}{ "code": "string", "title": "string", "details": "string"}{ "code": "string", "title": "string", "details": "string"}