ovh_pabx_hunting_queue_agent_live_statuses
Creates, updates, deletes, gets or lists an ovh_pabx_hunting_queue_agent_live_statuses resource.
Overview​
| Name | ovh_pabx_hunting_queue_agent_live_statuses |
| Type | Resource |
| Id | ovh.telephony.ovh_pabx_hunting_queue_agent_live_statuses |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
answered_calls | integer | The number of calls this agent took on the current day (wire: answeredCalls) |
last_status_change | string (date-time) | Last status change date (wire: lastStatusChange) |
status | string | Current status of the agent (inAQueueCall, loggedOut, onBreak, receiving, waiting) |
total_call_duration | integer | The 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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | agent_id, billing_account, queue_id, service_name | Get 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.
| Name | Datatype | Description |
|---|---|---|
agent_id | integer | (wire: agentId) |
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 the agent live status
SELECT
answered_calls,
last_status_change,
status,
total_call_duration
FROM ovh.telephony.ovh_pabx_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
;