List task queues statistics
TODO: Resource-level docs
Path parameters
-
The SID of the Workspace with the TaskQueues to read.
Query parameters
-
EndDate string(date-time)
Only calculate statistics from this date and time and earlier, specified in GMT as an ISO 8601 date-time.
-
FriendlyName string
The
friendly_name
of the TaskQueue statistics to read. -
Minutes integer
Only calculate statistics since this many minutes in the past. The default is 15 minutes.
-
StartDate string(date-time)
Only calculate statistics from this date and time and later, specified in ISO 8601 format.
-
TaskChannel string
Only calculate statistics on this TaskChannel. Can be the TaskChannel's SID or its
unique_name
, such asvoice
,sms
, ordefault
. -
SplitByWaitTime string
A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed.
-
PageSize integer
How many resources to return in each list page. The default is 50, and the maximum is 1000.
Minimum value is
1
, maximum value is1000
.
curl \
-X GET https://taskrouter.twilio.com/v1/Workspaces/{WorkspaceSid}/TaskQueues/Statistics \
--user "username:password"
{
"meta": {
"first_page_url": "https://example.com",
"key": "string",
"next_page_url": "https://example.com",
"page": 42,
"page_size": 42,
"previous_page_url": "https://example.com",
"url": "https://example.com"
},
"task_queues_statistics": [
{
"account_sid": "string",
"task_queue_sid": "string",
"workspace_sid": "string"
}
]
}
{
"meta": {
"first_page_url": "https://example.com",
"key": "string",
"next_page_url": "https://example.com",
"page": 42,
"page_size": 42,
"previous_page_url": "https://example.com",
"url": "https://example.com"
},
"task_queues_statistics": [
{
"account_sid": "string",
"task_queue_sid": "string",
"workspace_sid": "string"
}
]
}