github.com/twilio/twilio-go@v1.20.1/rest/taskrouter/v1/docs/WorkspacesTaskQueuesStatisticsApi.md (about)

     1  # WorkspacesTaskQueuesStatisticsApi
     2  
     3  All URIs are relative to *https://taskrouter.twilio.com*
     4  
     5  Method | HTTP request | Description
     6  ------------- | ------------- | -------------
     7  [**FetchTaskQueueStatistics**](WorkspacesTaskQueuesStatisticsApi.md#FetchTaskQueueStatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/Statistics | 
     8  [**ListTaskQueuesStatistics**](WorkspacesTaskQueuesStatisticsApi.md#ListTaskQueuesStatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/TaskQueues/Statistics | 
     9  
    10  
    11  
    12  ## FetchTaskQueueStatistics
    13  
    14  > TaskrouterV1TaskQueueStatistics FetchTaskQueueStatistics(ctx, WorkspaceSidTaskQueueSidoptional)
    15  
    16  
    17  
    18  
    19  
    20  ### Path Parameters
    21  
    22  
    23  Name | Type | Description
    24  ------------- | ------------- | -------------
    25  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
    26  **WorkspaceSid** | **string** | The SID of the Workspace with the TaskQueue to fetch.
    27  **TaskQueueSid** | **string** | The SID of the TaskQueue for which to fetch statistics.
    28  
    29  ### Other Parameters
    30  
    31  Other parameters are passed through a pointer to a FetchTaskQueueStatisticsParams struct
    32  
    33  
    34  Name | Type | Description
    35  ------------- | ------------- | -------------
    36  **EndDate** | **time.Time** | Only calculate statistics from this date and time and earlier, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time.
    37  **Minutes** | **int** | Only calculate statistics since this many minutes in the past. The default is 15 minutes.
    38  **StartDate** | **time.Time** | Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    39  **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`.
    40  **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.
    41  
    42  ### Return type
    43  
    44  [**TaskrouterV1TaskQueueStatistics**](TaskrouterV1TaskQueueStatistics.md)
    45  
    46  ### Authorization
    47  
    48  [accountSid_authToken](../README.md#accountSid_authToken)
    49  
    50  ### HTTP request headers
    51  
    52  - **Content-Type**: Not defined
    53  - **Accept**: application/json
    54  
    55  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
    56  [[Back to Model list]](../README.md#documentation-for-models)
    57  [[Back to README]](../README.md)
    58  
    59  
    60  ## ListTaskQueuesStatistics
    61  
    62  > []TaskrouterV1TaskQueuesStatistics ListTaskQueuesStatistics(ctx, WorkspaceSidoptional)
    63  
    64  
    65  
    66  
    67  
    68  ### Path Parameters
    69  
    70  
    71  Name | Type | Description
    72  ------------- | ------------- | -------------
    73  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
    74  **WorkspaceSid** | **string** | The SID of the Workspace with the TaskQueues to read.
    75  
    76  ### Other Parameters
    77  
    78  Other parameters are passed through a pointer to a ListTaskQueuesStatisticsParams struct
    79  
    80  
    81  Name | Type | Description
    82  ------------- | ------------- | -------------
    83  **EndDate** | **time.Time** | Only calculate statistics from this date and time and earlier, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time.
    84  **FriendlyName** | **string** | The `friendly_name` of the TaskQueue statistics to read.
    85  **Minutes** | **int** | Only calculate statistics since this many minutes in the past. The default is 15 minutes.
    86  **StartDate** | **time.Time** | Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    87  **TaskChannel** | **string** | Only calculate statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`.
    88  **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.
    89  **PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000.
    90  **Limit** | **int** | Max number of records to return.
    91  
    92  ### Return type
    93  
    94  [**[]TaskrouterV1TaskQueuesStatistics**](TaskrouterV1TaskQueuesStatistics.md)
    95  
    96  ### Authorization
    97  
    98  [accountSid_authToken](../README.md#accountSid_authToken)
    99  
   100  ### HTTP request headers
   101  
   102  - **Content-Type**: Not defined
   103  - **Accept**: application/json
   104  
   105  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
   106  [[Back to Model list]](../README.md#documentation-for-models)
   107  [[Back to README]](../README.md)
   108