currents
Creates, updates, deletes, gets or lists a currents resource.
Overview
| Name | currents |
| Type | Resource |
| Id | cloudflare.spectrum.currents |
Fields
The following fields are returned by SELECT queries:
- list
Get current aggregated analytics response
| Name | Datatype | Description |
|---|---|---|
appID | string | Application identifier. (example: 023e105f4ecef8ad9ca31a8372d0c353) |
bytesEgress | number | Number of bytes sent |
bytesIngress | number | Number of bytes received |
connections | number | Number of connections |
durationAvg | number | Average duration of connections |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | zone_id | appID, colo_name | Retrieves analytics aggregated from the last minute of usage on Spectrum applications underneath a given zone. |
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. |
appID | string | |
colo_name | string |
SELECT examples
- list
Retrieves analytics aggregated from the last minute of usage on Spectrum applications underneath a given zone.
SELECT
appID,
bytesEgress,
bytesIngress,
connections,
durationAvg
FROM cloudflare.spectrum.currents
WHERE zone_id = '{{ zone_id }}' -- required
AND appID = '{{ appID }}'
AND colo_name = '{{ colo_name }}'
;