tenant_usage_statistics
Creates, updates, deletes, gets or lists a tenant_usage_statistics resource.
Overview​
| Name | tenant_usage_statistics |
| Type | Resource |
| Id | ovh.license_office_prepaid.tenant_usage_statistics |
Fields​
The following fields are returned by SELECT queries:
- list
Office Current Statisitics
| Name | Datatype | Description |
|---|---|---|
date | string (date) | Date of the statistics |
lines | array | List of lines associated to this statistics entity. |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | service_name | from, to | 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) |
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.
| Name | Datatype | Description |
|---|---|---|
api_host | string | The 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_name | string | Service name (wire: serviceName) |
from | string (date-time) | Period's start point. |
to | string (date-time) | Period's end point. |
SELECT examples​
- list
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 }}'
;