/
model_taskrouter_v1_task_queue_cumulative_statistics.go
67 lines (64 loc) · 4.1 KB
/
model_taskrouter_v1_task_queue_cumulative_statistics.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
* This code was generated by
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
*
* Twilio - Taskrouter
* This is the public Twilio REST API.
*
* NOTE: This class is auto generated by OpenAPI Generator.
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package openapi
import (
"time"
)
// TaskrouterV1TaskQueueCumulativeStatistics struct for TaskrouterV1TaskQueueCumulativeStatistics
type TaskrouterV1TaskQueueCumulativeStatistics struct {
// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the TaskQueue resource.
AccountSid *string `json:"account_sid,omitempty"`
// The average time in seconds between Task creation and acceptance.
AvgTaskAcceptanceTime *int `json:"avg_task_acceptance_time,omitempty"`
// The beginning of the interval during which these statistics were calculated, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
StartTime *time.Time `json:"start_time,omitempty"`
// The end of the interval during which these statistics were calculated, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
EndTime *time.Time `json:"end_time,omitempty"`
// The total number of Reservations created for Tasks in the TaskQueue.
ReservationsCreated *int `json:"reservations_created,omitempty"`
// The total number of Reservations accepted for Tasks in the TaskQueue.
ReservationsAccepted *int `json:"reservations_accepted,omitempty"`
// The total number of Reservations rejected for Tasks in the TaskQueue.
ReservationsRejected *int `json:"reservations_rejected,omitempty"`
// The total number of Reservations that timed out for Tasks in the TaskQueue.
ReservationsTimedOut *int `json:"reservations_timed_out,omitempty"`
// The total number of Reservations canceled for Tasks in the TaskQueue.
ReservationsCanceled *int `json:"reservations_canceled,omitempty"`
// The total number of Reservations rescinded.
ReservationsRescinded *int `json:"reservations_rescinded,omitempty"`
// A list of objects that describe the number of Tasks canceled and reservations accepted above and below the thresholds specified in seconds.
SplitByWaitTime *interface{} `json:"split_by_wait_time,omitempty"`
// The SID of the TaskQueue from which these statistics were calculated.
TaskQueueSid *string `json:"task_queue_sid,omitempty"`
// 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.
WaitDurationUntilAccepted *interface{} `json:"wait_duration_until_accepted,omitempty"`
// The wait duration statistics (`avg`, `min`, `max`, `total`) for Tasks canceled while in the TaskQueue.
WaitDurationUntilCanceled *interface{} `json:"wait_duration_until_canceled,omitempty"`
// 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.
WaitDurationInQueueUntilAccepted *interface{} `json:"wait_duration_in_queue_until_accepted,omitempty"`
// The total number of Tasks canceled in the TaskQueue.
TasksCanceled *int `json:"tasks_canceled,omitempty"`
// The total number of Tasks completed in the TaskQueue.
TasksCompleted *int `json:"tasks_completed,omitempty"`
// The total number of Tasks deleted in the TaskQueue.
TasksDeleted *int `json:"tasks_deleted,omitempty"`
// The total number of Tasks entered into the TaskQueue.
TasksEntered *int `json:"tasks_entered,omitempty"`
// The total number of Tasks that were moved from one queue to another.
TasksMoved *int `json:"tasks_moved,omitempty"`
// The SID of the Workspace that contains the TaskQueue.
WorkspaceSid *string `json:"workspace_sid,omitempty"`
// The absolute URL of the TaskQueue statistics resource.
Url *string `json:"url,omitempty"`
}