Fetch workers cumulative statistics
TODO: Resource-level docs
Path parameters
-
The SID of the Workspace with the resource to fetch.
Query parameters
-
EndDate string(date-time)
Only calculate statistics from this date and time and earlier, specified in ISO 8601 format.
-
Minutes integer
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 string(date-time)
Only calculate statistics from this date and time and later, specified in ISO 8601 format.
-
TaskChannel string
Only calculate cumulative statistics on this TaskChannel. Can be the TaskChannel's SID or its
unique_name
, such asvoice
,sms
, ordefault
.
GET /v1/Workspaces/{WorkspaceSid}/Workers/CumulativeStatistics
curl \
-X GET https://taskrouter.twilio.com/v1/Workspaces/{WorkspaceSid}/Workers/CumulativeStatistics \
--user "username:password"
Response examples (200)
{
"account_sid": "string",
"activity_durations": [],
"end_time": "2023-05-04T09:42:00+00:00",
"reservations_accepted": 42,
"reservations_canceled": 42,
"reservations_created": 42,
"reservations_rejected": 42,
"reservations_rescinded": 42,
"reservations_timed_out": 42,
"start_time": "2023-05-04T09:42:00+00:00",
"url": "https://example.com",
"workspace_sid": "string"
}
Response examples (200)
{
"account_sid": "string",
"activity_durations": [],
"end_time": "2024-05-04T09:42:00+00:00",
"reservations_accepted": 42,
"reservations_canceled": 42,
"reservations_created": 42,
"reservations_rejected": 42,
"reservations_rescinded": 42,
"reservations_timed_out": 42,
"start_time": "2024-05-04T09:42:00+00:00",
"url": "https://example.com",
"workspace_sid": "string"
}