github.com/twilio/twilio-go@v1.20.1/rest/taskrouter/v1/model_taskrouter_v1_workspace_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 // TaskrouterV1WorkspaceCumulativeStatistics struct for TaskrouterV1WorkspaceCumulativeStatistics 22 type TaskrouterV1WorkspaceCumulativeStatistics struct { 23 // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Workspace 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 that were created for Workers. 32 ReservationsCreated *int `json:"reservations_created,omitempty"` 33 // The total number of Reservations accepted by Workers. 34 ReservationsAccepted *int `json:"reservations_accepted,omitempty"` 35 // The total number of Reservations that were rejected. 36 ReservationsRejected *int `json:"reservations_rejected,omitempty"` 37 // The total number of Reservations that were timed out. 38 ReservationsTimedOut *int `json:"reservations_timed_out,omitempty"` 39 // The total number of Reservations that were canceled. 40 ReservationsCanceled *int `json:"reservations_canceled,omitempty"` 41 // The total number of Reservations that were 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 wait duration statistics (`avg`, `min`, `max`, `total`) for Tasks that were accepted. 46 WaitDurationUntilAccepted *interface{} `json:"wait_duration_until_accepted,omitempty"` 47 // The wait duration statistics (`avg`, `min`, `max`, `total`) for Tasks that were canceled. 48 WaitDurationUntilCanceled *interface{} `json:"wait_duration_until_canceled,omitempty"` 49 // The total number of Tasks that were canceled. 50 TasksCanceled *int `json:"tasks_canceled,omitempty"` 51 // The total number of Tasks that were completed. 52 TasksCompleted *int `json:"tasks_completed,omitempty"` 53 // The total number of Tasks created. 54 TasksCreated *int `json:"tasks_created,omitempty"` 55 // The total number of Tasks that were deleted. 56 TasksDeleted *int `json:"tasks_deleted,omitempty"` 57 // The total number of Tasks that were moved from one queue to another. 58 TasksMoved *int `json:"tasks_moved,omitempty"` 59 // The total number of Tasks that were timed out of their Workflows (and deleted). 60 TasksTimedOutInWorkflow *int `json:"tasks_timed_out_in_workflow,omitempty"` 61 // The SID of the Workspace. 62 WorkspaceSid *string `json:"workspace_sid,omitempty"` 63 // The absolute URL of the Workspace statistics resource. 64 Url *string `json:"url,omitempty"` 65 }