Traffic Analytics

Get server-wide status-class time series

Per-bucket 2xx/3xx/4xx/5xx request counts across every app/host, zero-filled to a fixed length (see the per-app variant for granularity).

get/api/traffic/series

Query parameters

range'24h' | '7d' | '30d'

Time window and bucket granularity for a series. 24h yields 24 hourly buckets; 7d/30d yield 7/30 daily buckets. Defaults to 24h.

Response

Status-class time series

bucketinteger

Unix-millis start of the bucket

requestsinteger
bytes_ininteger
bytes_outinteger
s2xxinteger
s3xxinteger
s4xxinteger
s5xxinteger
unique_visitorsinteger

Per-bucket approximate distinct client IPs (HyperLogLog++)

p95number float

95th-percentile latency in ms (t-digest estimate)

Example response

[
  {
    "bucket": 1723334400000,
    "requests": 46,
    "bytes_in": 12800,
    "bytes_out": 402000,
    "s2xx": 42,
    "s3xx": 3,
    "s4xx": 1,
    "unique_visitors": 37,
    "p95": 118
  }
]

Changes

Changed in 2 of the 14 revisions of this API.6

    • added the optional property items/bytes_in to the response with the 200 status

      response-optional-property-added

    • added the optional property items/bytes_out to the response with the 200 status

      response-optional-property-added

    • added the optional property items/p95 to the response with the 200 status

      response-optional-property-added

    • added the optional property items/requests to the response with the 200 status

      response-optional-property-added

    • added the optional property items/unique_visitors to the response with the 200 status

      response-optional-property-added

    • endpoint added

      endpoint-added