github.com/twilio/twilio-go@v1.20.1/rest/taskrouter/v1/model_taskrouter_v1_task_queue_cumulative_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 import ( 18 "time" 19 ) 20 21 // TaskrouterV1TaskQueueCumulativeStatistics struct for TaskrouterV1TaskQueueCumulativeStatistics 22 type TaskrouterV1TaskQueueCumulativeStatistics struct { 23 // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the TaskQueue resource. 24 AccountSid *string `json:"account_sid,omitempty"` 25 // The average time in seconds between Task creation and acceptance. 26 AvgTaskAcceptanceTime *int `json:"avg_task_acceptance_time,omitempty"` 27 // The beginning of the interval during which these statistics were calculated, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. 28 StartTime *time.Time `json:"start_time,omitempty"` 29 // The end of the interval during which these statistics were calculated, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. 30 EndTime *time.Time `json:"end_time,omitempty"` 31 // The total number of Reservations created for Tasks in the TaskQueue. 32 ReservationsCreated *int `json:"reservations_created,omitempty"` 33 // The total number of Reservations accepted for Tasks in the TaskQueue. 34 ReservationsAccepted *int `json:"reservations_accepted,omitempty"` 35 // The total number of Reservations rejected for Tasks in the TaskQueue. 36 ReservationsRejected *int `json:"reservations_rejected,omitempty"` 37 // The total number of Reservations that timed out for Tasks in the TaskQueue. 38 ReservationsTimedOut *int `json:"reservations_timed_out,omitempty"` 39 // The total number of Reservations canceled for Tasks in the TaskQueue. 40 ReservationsCanceled *int `json:"reservations_canceled,omitempty"` 41 // The total number of Reservations rescinded. 42 ReservationsRescinded *int `json:"reservations_rescinded,omitempty"` 43 // A list of objects that describe the number of Tasks canceled and reservations accepted above and below the thresholds specified in seconds. 44 SplitByWaitTime *interface{} `json:"split_by_wait_time,omitempty"` 45 // The SID of the TaskQueue from which these statistics were calculated. 46 TaskQueueSid *string `json:"task_queue_sid,omitempty"` 47 // The wait duration statistics (`avg`, `min`, `max`, `total`) for Tasks accepted while in the TaskQueue. Calculation is based on the time when the Tasks were created. For transfers, the wait duration is counted from the moment ***the Task was created***, and not from when the transfer was initiated. 48 WaitDurationUntilAccepted *interface{} `json:"wait_duration_until_accepted,omitempty"` 49 // The wait duration statistics (`avg`, `min`, `max`, `total`) for Tasks canceled while in the TaskQueue. 50 WaitDurationUntilCanceled *interface{} `json:"wait_duration_until_canceled,omitempty"` 51 // The relative wait duration statistics (`avg`, `min`, `max`, `total`) for Tasks accepted while in the TaskQueue. Calculation is based on the time when the Tasks entered the TaskQueue. 52 WaitDurationInQueueUntilAccepted *interface{} `json:"wait_duration_in_queue_until_accepted,omitempty"` 53 // The total number of Tasks canceled in the TaskQueue. 54 TasksCanceled *int `json:"tasks_canceled,omitempty"` 55 // The total number of Tasks completed in the TaskQueue. 56 TasksCompleted *int `json:"tasks_completed,omitempty"` 57 // The total number of Tasks deleted in the TaskQueue. 58 TasksDeleted *int `json:"tasks_deleted,omitempty"` 59 // The total number of Tasks entered into the TaskQueue. 60 TasksEntered *int `json:"tasks_entered,omitempty"` 61 // The total number of Tasks that were moved from one queue to another. 62 TasksMoved *int `json:"tasks_moved,omitempty"` 63 // The SID of the Workspace that contains the TaskQueue. 64 WorkspaceSid *string `json:"workspace_sid,omitempty"` 65 // The absolute URL of the TaskQueue statistics resource. 66 Url *string `json:"url,omitempty"` 67 }