percentiles
Creates, updates, deletes, gets or lists a percentiles resource.
Overview
| Name | percentiles |
| Type | Resource |
| Id | cloudflare.zero_trust.percentiles |
Fields
The following fields are returned by SELECT queries:
- list
DEX HTTP test percentiles response
| Name | Datatype | Description |
|---|---|---|
dnsResponseTimeMs | object | |
resourceFetchTimeMs | object | |
serverResponseTimeMs | object |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | account_id, test_id | deviceId, from, to, colo | Get 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.
| Name | Datatype | Description |
|---|---|---|
account_id | string | The Cloudflare account ID. |
test_id | string | unique identifier for a specific test |
colo | string | Optionally filter result stats to a Cloudflare colo. Cannot be used in combination with deviceId param. |
deviceId | array | Optionally filter result stats to a specific device(s). Cannot be used in combination with colo param. |
from | string | Start time for the query in ISO (RFC3339 - ISO 8601) format |
to | string | End time for the query in ISO (RFC3339 - ISO 8601) format |
SELECT examples
- list
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 }}'
;