Skip to main content

outages_locations

Creates, updates, deletes, gets or lists an outages_locations resource.

Overview​

Nameoutages_locations
TypeResource
Idcloudflare.radar.outages_locations

Fields​

The following fields are returned by SELECT queries:

Successful response.

NameDatatypeDescription
clientCountryAlpha2string (example: PT)
clientCountryNamestring (example: Portugal)
valuestringA numeric string. (example: 10)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectlimit, dateRange, dateStart, dateEnd, formatRetrieves the number of outages by location.

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
dateEndstring (date-time)End of the date range (inclusive).
dateRangestringFilters results by date range.
dateStartstring (date-time)Start of the date range (inclusive).
formatstringFormat in which results will be returned.
limitintegerLimits the number of objects returned in the response.

SELECT examples​

Retrieves the number of outages by location.

SELECT
clientCountryAlpha2,
clientCountryName,
value
FROM cloudflare.radar.outages_locations
WHERE limit = '{{ limit }}'
AND dateRange = '{{ dateRange }}'
AND dateStart = '{{ dateStart }}'
AND dateEnd = '{{ dateEnd }}'
AND format = '{{ format }}'
;