Fetch worker statistics
TODO: Resource-level docs
Query parameters
-
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.
-
Only calculate statistics from this date and time and later, specified in ISO 8601 format.
-
Only calculate statistics from this date and time and earlier, specified in GMT as an ISO 8601 date-time.
-
The SID of the TaskQueue for which to fetch Worker statistics.
-
The
friendly_name
of the TaskQueue for which to fetch Worker statistics. -
Only include Workers with
friendly_name
values that match this parameter. -
Only calculate statistics on this TaskChannel. Can be the TaskChannel's SID or its
unique_name
, such asvoice
,sms
, ordefault
.
curl \
-X GET https://taskrouter.twilio.com/v1/Workspaces/{WorkspaceSid}/Workers/Statistics \
--user "username:password"
{
"account_sid": "string",
"url": "https://example.com",
"workspace_sid": "string"
}
{
"account_sid": "string",
"url": "https://example.com",
"workspace_sid": "string"
}