Skip to main content

speed_histogram

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

Overview

Namespeed_histogram
TypeResource
Idcloudflare.radar.speed_histogram

Fields

The following fields are returned by SELECT queries:

Successful response.

NameDatatypeDescription
histogram_0object
metaobjectMetadata for the results.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectname, dateEnd, asn, location, continent, bucketSize, metricGroup, formatRetrieves a histogram from the previous 90 days of Cloudflare Speed Test data, split into fixed bandwidth (Mbps), latency (ms), or jitter (ms) buckets.

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
asnarrayFilters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with - to exclude ASNs from results. For example, -174, 3356 excludes results from AS174, but includes results from AS3356.
bucketSizeintegerSpecifies the width for every bucket in the histogram.
continentarrayFilters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with - to exclude continents from results. For example, -EU,NA excludes results from EU, but includes results from NA.
dateEndarrayEnd of the date range (inclusive).
formatstringFormat in which results will be returned.
locationarrayFilters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with - to exclude locations from results. For example, -US,PT excludes results from the US, but includes results from PT.
metricGroupstringMetrics to be returned.
namearrayArray of names used to label the series in the response.

SELECT examples

Retrieves a histogram from the previous 90 days of Cloudflare Speed Test data, split into fixed bandwidth (Mbps), latency (ms), or jitter (ms) buckets.

SELECT
histogram_0,
meta
FROM cloudflare.radar.speed_histogram
WHERE name = '{{ name }}'
AND dateEnd = '{{ dateEnd }}'
AND asn = '{{ asn }}'
AND location = '{{ location }}'
AND continent = '{{ continent }}'
AND bucketSize = '{{ bucketSize }}'
AND metricGroup = '{{ metricGroup }}'
AND format = '{{ format }}'
;