TaskrouterTask Queue Cumulative Statistics

Fetch Task Queue Cumulative Statistics

GET
/v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/CumulativeStatistics

Authorization

accountSid_authToken
AuthorizationBasic <token>

In: header

Path Parameters

WorkspaceSid*string

The SID of the Workspace with the TaskQueue to fetch.

Match^WS[0-9a-fA-F]{32}$
Length34 <= length <= 34
TaskQueueSid*string

The SID of the TaskQueue for which to fetch statistics.

Match^WQ[0-9a-fA-F]{32}$
Length34 <= length <= 34

Query Parameters

EndDate?string

Only calculate statistics from this date and time and earlier, specified in GMT as an ISO 8601 date-time.

Formatdate-time
Minutes?integer

Only calculate statistics since this many minutes in the past. The default is 15 minutes.

StartDate?string

Only calculate statistics from this date and time and later, specified in ISO 8601 format.

Formatdate-time
TaskChannel?string

Only calculate cumulative statistics on this TaskChannel. Can be the TaskChannel's SID or its unique_name, such as voice, sms, or default.

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.

Response Body

application/json

curl -X GET "https://example.com/v1/Workspaces/stringstringstringstringstringstri/TaskQueues/stringstringstringstringstringstri/CumulativeStatistics?EndDate=2015-07-30T20%3A00%3A00Z&StartDate=2015-07-30T20%3A00%3A00Z"
{  "reservations_created": 100,  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",  "reservations_rejected": 100,  "tasks_completed": 100,  "end_time": "2015-07-30T20:00:00Z",  "tasks_entered": 100,  "tasks_canceled": 100,  "reservations_accepted": 100,  "task_queue_sid": "WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",  "reservations_timed_out": 100,  "url": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/TaskQueues/WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/CumulativeStatistics",  "wait_duration_until_canceled": {    "avg": 0,    "min": 0,    "max": 0,    "total": 0  },  "wait_duration_until_accepted": {    "avg": 0,    "min": 0,    "max": 0,    "total": 0  },  "wait_duration_in_queue_until_accepted": {    "avg": 0,    "min": 0,    "max": 0,    "total": 0  },  "split_by_wait_time": {    "5": {      "above": {        "tasks_canceled": 0,        "reservations_accepted": 0      },      "below": {        "tasks_canceled": 0,        "reservations_accepted": 0      }    },    "10": {      "above": {        "tasks_canceled": 0,        "reservations_accepted": 0      },      "below": {        "tasks_canceled": 0,        "reservations_accepted": 0      }    }  },  "start_time": "2015-07-30T20:00:00Z",  "tasks_moved": 100,  "reservations_canceled": 100,  "workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",  "tasks_deleted": 100,  "reservations_rescinded": 100,  "avg_task_acceptance_time": 100}