Fetch task queue cumulative 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
-
EndDate string(date-time)
Only calculate statistics from this date and time and earlier, specified in GMT as an ISO 8601 date-time.
-
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 cumulative 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. TaskRouter will calculate statistics on up to 10,000 Tasks/Reservations for any given threshold.
curl \
-X GET https://taskrouter.twilio.com/v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/CumulativeStatistics \
--user "username:password"
{
"account_sid": "string",
"avg_task_acceptance_time": 42,
"end_time": "2023-05-04T09:42:00+00:00",
"reservations_accepted": 42,
"reservations_canceled": 42,
"reservations_created": 42,
"reservations_rejected": 42,
"reservations_rescinded": 42,
"reservations_timed_out": 42,
"start_time": "2023-05-04T09:42:00+00:00",
"task_queue_sid": "string",
"tasks_canceled": 42,
"tasks_completed": 42,
"tasks_deleted": 42,
"tasks_entered": 42,
"tasks_moved": 42,
"url": "https://example.com",
"workspace_sid": "string"
}
{
"account_sid": "string",
"avg_task_acceptance_time": 42,
"end_time": "2024-05-04T09:42:00+00:00",
"reservations_accepted": 42,
"reservations_canceled": 42,
"reservations_created": 42,
"reservations_rejected": 42,
"reservations_rescinded": 42,
"reservations_timed_out": 42,
"start_time": "2024-05-04T09:42:00+00:00",
"task_queue_sid": "string",
"tasks_canceled": 42,
"tasks_completed": 42,
"tasks_deleted": 42,
"tasks_entered": 42,
"tasks_moved": 42,
"url": "https://example.com",
"workspace_sid": "string"
}