bytimes
Creates, updates, deletes, gets or lists a bytimes resource.
Overview
| Name | bytimes |
| Type | Resource |
| Id | cloudflare.spectrum.bytimes |
Fields
The following fields are returned by SELECT queries:
- list
Get analytics by time response
| Name | Datatype | Description |
|---|---|---|
dimensions | array | |
metrics | array |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | zone_id | dimensions, sort, until, metrics, filters, since, time_delta | Retrieves a list of aggregate metrics grouped by time interval. |
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 |
|---|---|---|
zone_id | string | The Cloudflare zone ID. |
dimensions | array | |
filters | string | |
metrics | array | |
since | string (date-time) | |
sort | array | |
time_delta | string | |
until | string (date-time) |
SELECT examples
- list
Retrieves a list of aggregate metrics grouped by time interval.
SELECT
dimensions,
metrics
FROM cloudflare.spectrum.bytimes
WHERE zone_id = '{{ zone_id }}' -- required
AND dimensions = '{{ dimensions }}'
AND sort = '{{ sort }}'
AND until = '{{ until }}'
AND metrics = '{{ metrics }}'
AND filters = '{{ filters }}'
AND since = '{{ since }}'
AND time_delta = '{{ time_delta }}'
;