Skip to content

Latest commit

 

History

History
56 lines (31 loc) · 2.53 KB

WorkspacesStatisticsApi.md

File metadata and controls

56 lines (31 loc) · 2.53 KB

WorkspacesStatisticsApi

All URIs are relative to https://taskrouter.twilio.com

Method HTTP request Description
FetchWorkspaceStatistics Get /v1/Workspaces/{WorkspaceSid}/Statistics

FetchWorkspaceStatistics

TaskrouterV1WorkspaceStatistics FetchWorkspaceStatistics(ctx, WorkspaceSidoptional)

Path Parameters

Name Type Description
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
WorkspaceSid string The SID of the Workspace to fetch.

Other Parameters

Other parameters are passed through a pointer to a FetchWorkspaceStatisticsParams struct

Name Type Description
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.
StartDate time.Time Only calculate statistics from this date and time and later, specified in ISO 8601 format.
EndDate time.Time Only calculate statistics from this date and time and earlier, specified in GMT as an ISO 8601 date-time.
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. 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.

Return type

TaskrouterV1WorkspaceStatistics

Authorization

accountSid_authToken

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]