Fetch task queue real time statistics
TODO: Resource-level docs
Path parameters
-
The SID of the Workspace with the TaskQueue to fetch.
-
The SID of the TaskQueue for which to fetch statistics.
Query parameters
-
TaskChannel string
The TaskChannel for which to fetch statistics. Can be the TaskChannel's SID or its
unique_name
, such asvoice
,sms
, ordefault
.
GET /v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/RealTimeStatistics
curl \
-X GET https://taskrouter.twilio.com/v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/RealTimeStatistics \
--user "username:password"
Response examples (200)
{
"account_sid": "string",
"activity_statistics": [],
"longest_relative_task_age_in_queue": 42,
"longest_relative_task_sid_in_queue": "string",
"longest_task_waiting_age": 42,
"longest_task_waiting_sid": "string",
"task_queue_sid": "string",
"total_available_workers": 42,
"total_eligible_workers": 42,
"total_tasks": 42,
"url": "https://example.com",
"workspace_sid": "string"
}
Response examples (200)
{
"account_sid": "string",
"activity_statistics": [],
"longest_relative_task_age_in_queue": 42,
"longest_relative_task_sid_in_queue": "string",
"longest_task_waiting_age": 42,
"longest_task_waiting_sid": "string",
"task_queue_sid": "string",
"total_available_workers": 42,
"total_eligible_workers": 42,
"total_tasks": 42,
"url": "https://example.com",
"workspace_sid": "string"
}