Skip to main content

currents

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

Overview

Namecurrents
TypeResource
Idcloudflare.spectrum.currents

Fields

The following fields are returned by SELECT queries:

Get current aggregated analytics response

NameDatatypeDescription
appIDstringApplication identifier. (example: 023e105f4ecef8ad9ca31a8372d0c353)
bytesEgressnumberNumber of bytes sent
bytesIngressnumberNumber of bytes received
connectionsnumberNumber of connections
durationAvgnumberAverage duration of connections

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectzone_idappID, colo_nameRetrieves 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.

NameDatatypeDescription
zone_idstringThe Cloudflare zone ID.
appIDstring
colo_namestring

SELECT examples

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 }}'
;