Fetch Worker Statistics
Authorization
accountSid_authToken In: header
Path Parameters
The SID of the Workspace with the Worker to fetch.
^WS[0-9a-fA-F]{32}$34 <= length <= 34Query 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.
date-timeOnly calculate statistics from this date and time and earlier, specified in GMT as an ISO 8601 date-time.
date-timeThe SID of the TaskQueue for which to fetch Worker statistics.
^WQ[0-9a-fA-F]{32}$34 <= length <= 34The 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 as voice, sms, or default.
Response Body
application/json
curl -X GET "https://example.com/v1/Workspaces/stringstringstringstringstringstri/Workers/Statistics?Minutes=1&StartDate=2008-01-02T00%3A00%3A00Z&EndDate=2008-01-02T00%3A00%3A00Z"{ "cumulative": { "reservations_created": 0, "reservations_accepted": 0, "reservations_rejected": 0, "reservations_timed_out": 0, "reservations_canceled": 0, "reservations_rescinded": 0, "activity_durations": [ { "max": 0, "min": 900, "sid": "WAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "friendly_name": "Offline", "avg": 1080, "total": 5400 }, { "max": 0, "min": 900, "sid": "WAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "friendly_name": "Busy", "avg": 1012, "total": 8100 }, { "max": 0, "min": 0, "sid": "WAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "friendly_name": "Idle", "avg": 0, "total": 0 }, { "max": 0, "min": 0, "sid": "WAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "friendly_name": "Reserved", "avg": 0, "total": 0 } ], "start_time": "2008-01-02T00:00:00Z", "end_time": "2008-01-02T00:00:00Z" }, "realtime": { "total_workers": 15, "activity_statistics": [ { "friendly_name": "Idle", "workers": 0, "sid": "WAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }, { "friendly_name": "Busy", "workers": 9, "sid": "WAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }, { "friendly_name": "Offline", "workers": 6, "sid": "WAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }, { "friendly_name": "Reserved", "workers": 0, "sid": "WAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" } ] }, "workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "url": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Workers/Statistics"}