bytimes
Creates, updates, deletes, gets or lists a bytimes resource.
Overview
| Name | bytimes |
| Type | Resource |
| Id | cloudflare.dns_firewall.bytimes |
Fields
The following fields are returned by SELECT queries:
- list
By Time response
| Name | Datatype | Description |
|---|---|---|
dimensions | array | Array of dimension values, representing the combination of dimension values corresponding to this row. |
metrics | array | Array with one item per requested metric. Each item is an array of values, broken down by time interval. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | dns_firewall_id, account_id | metrics, dimensions, since, until, limit, sort, filters, time_delta | Retrieves a list of aggregate metrics grouped by time interval. See Analytics API properties for detailed information about the available query parameters. |
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. |
dns_firewall_id | string | |
dimensions | string | |
filters | string | |
limit | integer | |
metrics | string | |
since | string (date-time) | |
sort | string | |
time_delta | string | |
until | string (date-time) |
SELECT examples
- list
Retrieves a list of aggregate metrics grouped by time interval. See Analytics API properties for detailed information about the available query parameters.
SELECT
dimensions,
metrics
FROM cloudflare.dns_firewall.bytimes
WHERE dns_firewall_id = '{{ dns_firewall_id }}' -- required
AND account_id = '{{ account_id }}' -- required
AND metrics = '{{ metrics }}'
AND dimensions = '{{ dimensions }}'
AND since = '{{ since }}'
AND until = '{{ until }}'
AND limit = '{{ limit }}'
AND sort = '{{ sort }}'
AND filters = '{{ filters }}'
AND time_delta = '{{ time_delta }}'
;