Skip to main content

easy_hunting_hunting_queue_agent_live_statuses

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

Overview​

Nameeasy_hunting_hunting_queue_agent_live_statuses
TypeResource
Idovh.telephony.easy_hunting_hunting_queue_agent_live_statuses

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
answered_callsintegerThe number of calls this agent took on the current day (wire: answeredCalls)
last_status_changestring (date-time)Last status change date (wire: lastStatusChange)
statusstringCurrent status of the agent (inAQueueCall, loggedOut, onBreak, receiving, waiting)
total_call_durationintegerThe total duration in seconds of the calls this agent took on the current day (wire: totalCallDuration)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectagent_id, billing_account, queue_id, service_nameGet the agent live status

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
agent_idinteger (wire: agentId)
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 the agent live status

SELECT
answered_calls,
last_status_change,
status,
total_call_duration
FROM ovh.telephony.easy_hunting_hunting_queue_agent_live_statuses
WHERE agent_id = '{{ agent_id }}' -- required
AND billing_account = '{{ billing_account }}' -- required
AND queue_id = '{{ queue_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;