queue_statistics
Creates, updates, deletes, gets or lists a queue_statistics resource.
Overview
| Name | queue_statistics |
| Type | Resource |
| Id | azure.communication_job_router.queue_statistics |
Fields
The following fields are returned by SELECT queries:
- get_queue_statistics
| Name | Datatype | Description |
|---|---|---|
estimatedWaitTimeMinutes | object | The estimated wait time of this queue rounded up to the nearest minute, grouped by job priority. |
length | integer | Length of the queue: total number of enqueued jobs. Required. |
longestJobWaitTimeMinutes | number | The wait time of the job that has been enqueued in this queue for the longest. |
queueId | string | Id of the queue these details are about. Required. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_queue_statistics | select | queue_id, endpoint | Retrieves a queue's statistics. Retrieves a queue's 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 |
|---|---|---|
endpoint | string | The service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: ) |
queue_id | string | Id of the queue to retrieve statistics. Required. |
SELECT examples
- get_queue_statistics
Retrieves a queue's statistics. Retrieves a queue's statistics.
SELECT
estimatedWaitTimeMinutes,
length,
longestJobWaitTimeMinutes,
queueId
FROM azure.communication_job_router.queue_statistics
WHERE queue_id = '{{ queue_id }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;