github.com/twilio/twilio-go@v1.20.1/rest/taskrouter/v1/model_taskrouter_v1_task_queue_real_time_statistics.go (about) 1 /* 2 * This code was generated by 3 * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ 4 * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ 5 * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ 6 * 7 * Twilio - Taskrouter 8 * This is the public Twilio REST API. 9 * 10 * NOTE: This class is auto generated by OpenAPI Generator. 11 * https://openapi-generator.tech 12 * Do not edit the class manually. 13 */ 14 15 package openapi 16 17 // TaskrouterV1TaskQueueRealTimeStatistics struct for TaskrouterV1TaskQueueRealTimeStatistics 18 type TaskrouterV1TaskQueueRealTimeStatistics struct { 19 // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the TaskQueue resource. 20 AccountSid *string `json:"account_sid,omitempty"` 21 // The number of current Workers by Activity. 22 ActivityStatistics *[]interface{} `json:"activity_statistics,omitempty"` 23 // The age of the longest waiting Task. 24 LongestTaskWaitingAge *int `json:"longest_task_waiting_age,omitempty"` 25 // The SID of the longest waiting Task. 26 LongestTaskWaitingSid *string `json:"longest_task_waiting_sid,omitempty"` 27 // The relative age in the TaskQueue for the longest waiting Task. Calculation is based on the time when the Task entered the TaskQueue. 28 LongestRelativeTaskAgeInQueue *int `json:"longest_relative_task_age_in_queue,omitempty"` 29 // The Task SID of the Task waiting in the TaskQueue the longest. Calculation is based on the time when the Task entered the TaskQueue. 30 LongestRelativeTaskSidInQueue *string `json:"longest_relative_task_sid_in_queue,omitempty"` 31 // The SID of the TaskQueue from which these statistics were calculated. 32 TaskQueueSid *string `json:"task_queue_sid,omitempty"` 33 // The number of Tasks by priority. For example: `{\"0\": \"10\", \"99\": \"5\"}` shows 10 Tasks at priority 0 and 5 at priority 99. 34 TasksByPriority *interface{} `json:"tasks_by_priority,omitempty"` 35 // The number of Tasks by their current status. For example: `{\"pending\": \"1\", \"reserved\": \"3\", \"assigned\": \"2\", \"completed\": \"5\"}`. 36 TasksByStatus *interface{} `json:"tasks_by_status,omitempty"` 37 // The total number of Workers available for Tasks in the TaskQueue. 38 TotalAvailableWorkers *int `json:"total_available_workers,omitempty"` 39 // The total number of Workers eligible for Tasks in the TaskQueue, independent of their Activity state. 40 TotalEligibleWorkers *int `json:"total_eligible_workers,omitempty"` 41 // The total number of Tasks. 42 TotalTasks *int `json:"total_tasks,omitempty"` 43 // The SID of the Workspace that contains the TaskQueue. 44 WorkspaceSid *string `json:"workspace_sid,omitempty"` 45 // The absolute URL of the TaskQueue statistics resource. 46 Url *string `json:"url,omitempty"` 47 }