ovh_pabx_hunting_queue_live_statistics
Creates, updates, deletes, gets or lists an ovh_pabx_hunting_queue_live_statistics resource.
Overview​
| Name | ovh_pabx_hunting_queue_live_statistics |
| Type | Resource |
| Id | ovh.telephony.ovh_pabx_hunting_queue_live_statistics |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
calls_answered | integer | Total of calls answered (wire: callsAnswered) |
calls_lost | integer | Total of calls lost (wire: callsLost) |
calls_total | integer | Total of calls (wire: callsTotal) |
last_reset | string (date-time) | Last reset datetime of queue's statistics (wire: lastReset) |
total_call_duration | integer | Total call duration in seconds (wire: totalCallDuration) |
total_waiting_duration | integer | Total waiting duration in seconds (wire: totalWaitingDuration) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | billing_account, queue_id, service_name | Get queue live statistics |
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"}}) |
billing_account | string | The name of your billingAccount (wire: billingAccount) |
queue_id | integer | (wire: queueId) |
service_name | string | (wire: serviceName) |
SELECT examples​
- get
Get queue live statistics
SELECT
calls_answered,
calls_lost,
calls_total,
last_reset,
total_call_duration,
total_waiting_duration
FROM ovh.telephony.ovh_pabx_hunting_queue_live_statistics
WHERE billing_account = '{{ billing_account }}' -- required
AND queue_id = '{{ queue_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;