Skip to main content

ovh_pabx_hunting_queue_live_statistics

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

Overview​

Nameovh_pabx_hunting_queue_live_statistics
TypeResource
Idovh.telephony.ovh_pabx_hunting_queue_live_statistics

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
calls_answeredintegerTotal of calls answered (wire: callsAnswered)
calls_lostintegerTotal of calls lost (wire: callsLost)
calls_totalintegerTotal of calls (wire: callsTotal)
last_resetstring (date-time)Last reset datetime of queue's statistics (wire: lastReset)
total_call_durationintegerTotal call duration in seconds (wire: totalCallDuration)
total_waiting_durationintegerTotal waiting duration in seconds (wire: totalWaitingDuration)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbilling_account, queue_id, service_nameGet 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.

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"}})
billing_accountstringThe name of your billingAccount (wire: billingAccount)
queue_idinteger (wire: queueId)
service_namestring (wire: serviceName)

SELECT examples​

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
;