Skip to main content

percentiles

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

Overview

Namepercentiles
TypeResource
Idcloudflare.zero_trust.percentiles

Fields

The following fields are returned by SELECT queries:

DEX HTTP test percentiles response

NameDatatypeDescription
dnsResponseTimeMsobject
resourceFetchTimeMsobject
serverResponseTimeMsobject

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_id, test_iddeviceId, from, to, coloGet percentiles for an http test for a given time period between 1 hour and 7 days.

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_idstringThe Cloudflare account ID.
test_idstringunique identifier for a specific test
colostringOptionally filter result stats to a Cloudflare colo. Cannot be used in combination with deviceId param.
deviceIdarrayOptionally filter result stats to a specific device(s). Cannot be used in combination with colo param.
fromstringStart time for the query in ISO (RFC3339 - ISO 8601) format
tostringEnd time for the query in ISO (RFC3339 - ISO 8601) format

SELECT examples

Get percentiles for an http test for a given time period between 1 hour and 7 days.

SELECT
dnsResponseTimeMs,
resourceFetchTimeMs,
serverResponseTimeMs
FROM cloudflare.zero_trust.percentiles
WHERE account_id = '{{ account_id }}' -- required
AND test_id = '{{ test_id }}' -- required
AND deviceId = '{{ deviceId }}'
AND from = '{{ from }}'
AND to = '{{ to }}'
AND colo = '{{ colo }}'
;