All URIs are relative to https://taskrouter.twilio.com
Method | HTTP request | Description |
---|---|---|
FetchTaskQueueStatistics | Get /v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/Statistics | |
ListTaskQueuesStatistics | Get /v1/Workspaces/{WorkspaceSid}/TaskQueues/Statistics |
TaskrouterV1TaskQueueStatistics FetchTaskQueueStatistics(ctx, WorkspaceSidTaskQueueSidoptional)
Name | Type | Description |
---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. |
WorkspaceSid | string | The SID of the Workspace with the TaskQueue to fetch. |
TaskQueueSid | string | The SID of the TaskQueue for which to fetch statistics. |
Other parameters are passed through a pointer to a FetchTaskQueueStatisticsParams struct
Name | Type | Description |
---|---|---|
EndDate | time.Time | Only calculate statistics from this date and time and earlier, specified in GMT as an ISO 8601 date-time. |
Minutes | int | Only calculate statistics since this many minutes in the past. The default is 15 minutes. |
StartDate | time.Time | Only calculate statistics from this date and time and later, specified in ISO 8601 format. |
TaskChannel | string | Only calculate real-time and cumulative statistics for the specified 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. |
TaskrouterV1TaskQueueStatistics
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]TaskrouterV1TaskQueuesStatistics ListTaskQueuesStatistics(ctx, WorkspaceSidoptional)
Name | Type | Description |
---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. |
WorkspaceSid | string | The SID of the Workspace with the TaskQueues to read. |
Other parameters are passed through a pointer to a ListTaskQueuesStatisticsParams struct
Name | Type | Description |
---|---|---|
EndDate | time.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 | int | Only calculate statistics since this many minutes in the past. The default is 15 minutes. |
StartDate | time.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 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. |
PageSize | int | How many resources to return in each list page. The default is 50, and the maximum is 1000. |
Limit | int | Max number of records to return. |
[]TaskrouterV1TaskQueuesStatistics
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]