Skip to main content

cdn_domain_statistics

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

Overview​

Namecdn_domain_statistics
TypeResource
Idovh.hosting_web.cdn_domain_statistics

Fields​

The following fields are returned by SELECT queries:

Domain Statistics Datapoints

NameDatatypeDescription
namestringname of the serie (hit, miss)
pointsarrayList of DataPoints
unitstringUnit of the serie (req/min)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectdomain_name, service_nameperiodGet CDN statistics for a domain (Deprecated, will be removed)

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
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
domain_namestringDomain name (wire: domainName)
service_namestringService name (wire: serviceName)
periodstringPeriod (default is day)

SELECT examples​

Get CDN statistics for a domain (Deprecated, will be removed)

SELECT
name,
points,
unit
FROM ovh.hosting_web.cdn_domain_statistics
WHERE domain_name = '{{ domain_name }}' -- required
AND service_name = '{{ service_name }}' -- required
AND period = '{{ period }}'
;