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

     1  # WorkspacesCumulativeStatisticsApi
     2  
     3  All URIs are relative to *https://taskrouter.twilio.com*
     4  
     5  Method | HTTP request | Description
     6  ------------- | ------------- | -------------
     7  [**FetchWorkspaceCumulativeStatistics**](WorkspacesCumulativeStatisticsApi.md#FetchWorkspaceCumulativeStatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/CumulativeStatistics | 
     8  
     9  
    10  
    11  ## FetchWorkspaceCumulativeStatistics
    12  
    13  > TaskrouterV1WorkspaceCumulativeStatistics FetchWorkspaceCumulativeStatistics(ctx, WorkspaceSidoptional)
    14  
    15  
    16  
    17  
    18  
    19  ### Path Parameters
    20  
    21  
    22  Name | Type | Description
    23  ------------- | ------------- | -------------
    24  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
    25  **WorkspaceSid** | **string** | The SID of the Workspace to fetch.
    26  
    27  ### Other Parameters
    28  
    29  Other parameters are passed through a pointer to a FetchWorkspaceCumulativeStatisticsParams struct
    30  
    31  
    32  Name | Type | Description
    33  ------------- | ------------- | -------------
    34  **EndDate** | **time.Time** | Only include usage that occurred on or before this date, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time.
    35  **Minutes** | **int** | Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends.
    36  **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.
    37  **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`.
    38  **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. For example, `5,30` would show splits of Tasks that were canceled or accepted before and after 5 seconds and before and after 30 seconds. This can be used to show short abandoned Tasks or Tasks that failed to meet an SLA. TaskRouter will calculate statistics on up to 10,000 Tasks for any given threshold.
    39  
    40  ### Return type
    41  
    42  [**TaskrouterV1WorkspaceCumulativeStatistics**](TaskrouterV1WorkspaceCumulativeStatistics.md)
    43  
    44  ### Authorization
    45  
    46  [accountSid_authToken](../README.md#accountSid_authToken)
    47  
    48  ### HTTP request headers
    49  
    50  - **Content-Type**: Not defined
    51  - **Accept**: application/json
    52  
    53  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
    54  [[Back to Model list]](../README.md#documentation-for-models)
    55  [[Back to README]](../README.md)
    56