Skip to main content

tenant_usage_statistics

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

Overview​

Nametenant_usage_statistics
TypeResource
Idovh.license_office_prepaid.tenant_usage_statistics

Fields​

The following fields are returned by SELECT queries:

Office Current Statisitics

NameDatatypeDescription
datestring (date)Date of the statistics
linesarrayList of lines associated to this statistics entity.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectservice_namefrom, toReturns, for each day between from and to, the peak and end-of-day counts of activated licenses of the parent tenant, by license type. (Alpha version)

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"}})
service_namestringService name (wire: serviceName)
fromstring (date-time)Period's start point.
tostring (date-time)Period's end point.

SELECT examples​

Returns, for each day between from and to, the peak and end-of-day counts of activated licenses of the parent tenant, by license type. (Alpha version)

SELECT
date,
lines
FROM ovh.license_office_prepaid.tenant_usage_statistics
WHERE service_name = '{{ service_name }}' -- required
AND from = '{{ from }}'
AND to = '{{ to }}'
;