twilio-ruby 5.27.0 → 5.27.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.dockerignore +1 -0
- data/CHANGES.md +13 -0
- data/CONTRIBUTING.md +2 -0
- data/Dockerfile +2 -2
- data/README.md +2 -2
- data/lib/twilio-ruby/http/http_client.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +18 -18
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +9 -9
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +9 -9
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +5 -5
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +10 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +1 -1
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +12 -12
- data/lib/twilio-ruby/rest/flex_api.rb +6 -3
- data/lib/twilio-ruby/rest/flex_api/v1.rb +3 -3
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +23 -23
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +39 -37
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +102 -96
- data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +20 -20
- data/lib/twilio-ruby/rest/messaging.rb +3 -2
- data/lib/twilio-ruby/rest/messaging/v1.rb +2 -3
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +124 -91
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +22 -18
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +22 -16
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +18 -20
- data/lib/twilio-ruby/rest/messaging/v1/session.rb +48 -44
- data/lib/twilio-ruby/rest/messaging/v1/session/message.rb +46 -48
- data/lib/twilio-ruby/rest/messaging/v1/session/participant.rb +55 -62
- data/lib/twilio-ruby/rest/messaging/v1/session/webhook.rb +61 -65
- data/lib/twilio-ruby/rest/messaging/v1/webhook.rb +30 -36
- data/lib/twilio-ruby/rest/monitor.rb +4 -2
- data/lib/twilio-ruby/rest/monitor/v1.rb +2 -2
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +45 -57
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +47 -50
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +8 -8
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +3 -3
- data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +6 -6
- data/lib/twilio-ruby/rest/preview/trusted_comms/device.rb +1 -1
- data/lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb +55 -55
- data/lib/twilio-ruby/rest/pricing/v2/voice.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +4 -4
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/serverless.rb +2 -1
- data/lib/twilio-ruby/rest/serverless/v1.rb +1 -2
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +27 -28
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +22 -22
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +22 -22
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +25 -24
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +26 -24
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +21 -24
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +31 -31
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +35 -35
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +22 -22
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +22 -22
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +12 -12
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +7 -4
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +6 -3
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +15 -9
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +6 -3
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +15 -9
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +9 -6
- data/lib/twilio-ruby/rest/taskrouter.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +102 -95
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +52 -44
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +90 -81
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +152 -136
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +35 -29
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +96 -89
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +61 -61
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +27 -21
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +46 -46
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +57 -64
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +98 -79
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +41 -39
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +39 -33
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +32 -31
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +16 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +42 -42
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +75 -72
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +59 -51
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +24 -18
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +54 -46
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +48 -46
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +17 -17
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +44 -42
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +24 -18
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +3 -3
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +1 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +1 -2
- data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +12 -12
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +6 -6
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +6 -6
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +2 -1
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +2 -1
- data/lib/twilio-ruby/rest/video.rb +8 -8
- data/lib/twilio-ruby/rest/video/v1.rb +4 -7
- data/lib/twilio-ruby/rest/video/v1/composition.rb +89 -98
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +224 -195
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +34 -34
- data/lib/twilio-ruby/rest/video/v1/recording.rb +53 -55
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +32 -32
- data/lib/twilio-ruby/rest/video/v1/room.rb +71 -61
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +45 -33
- data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +56 -57
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb +25 -22
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +10 -10
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribed_track.rb +24 -23
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +1 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +5 -5
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +2 -2
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/conversations/v1/conversation/message_spec.rb +58 -0
- metadata +4 -4
data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb
CHANGED
|
@@ -16,8 +16,10 @@ module Twilio
|
|
|
16
16
|
##
|
|
17
17
|
# Initialize the TaskQueueRealTimeStatisticsList
|
|
18
18
|
# @param [Version] version Version that contains the resource
|
|
19
|
-
# @param [String] workspace_sid The
|
|
20
|
-
#
|
|
19
|
+
# @param [String] workspace_sid The SID of the Workspace that contains the
|
|
20
|
+
# TaskQueue.
|
|
21
|
+
# @param [String] task_queue_sid The SID of the TaskQueue from which these
|
|
22
|
+
# statistics were calculated.
|
|
21
23
|
# @return [TaskQueueRealTimeStatisticsList] TaskQueueRealTimeStatisticsList
|
|
22
24
|
def initialize(version, workspace_sid: nil, task_queue_sid: nil)
|
|
23
25
|
super(version)
|
|
@@ -71,8 +73,10 @@ module Twilio
|
|
|
71
73
|
##
|
|
72
74
|
# Initialize the TaskQueueRealTimeStatisticsContext
|
|
73
75
|
# @param [Version] version Version that contains the resource
|
|
74
|
-
# @param [String] workspace_sid The
|
|
75
|
-
#
|
|
76
|
+
# @param [String] workspace_sid The SID of the Workspace with the TaskQueue to
|
|
77
|
+
# fetch.
|
|
78
|
+
# @param [String] task_queue_sid The SID of the TaskQueue for which to fetch
|
|
79
|
+
# statistics.
|
|
76
80
|
# @return [TaskQueueRealTimeStatisticsContext] TaskQueueRealTimeStatisticsContext
|
|
77
81
|
def initialize(version, workspace_sid, task_queue_sid)
|
|
78
82
|
super(version)
|
|
@@ -84,9 +88,9 @@ module Twilio
|
|
|
84
88
|
|
|
85
89
|
##
|
|
86
90
|
# Fetch a TaskQueueRealTimeStatisticsInstance
|
|
87
|
-
# @param [String] task_channel
|
|
88
|
-
# TaskChannel
|
|
89
|
-
#
|
|
91
|
+
# @param [String] task_channel The TaskChannel for which to fetch statistics. Can
|
|
92
|
+
# be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or
|
|
93
|
+
# `default`.
|
|
90
94
|
# @return [TaskQueueRealTimeStatisticsInstance] Fetched TaskQueueRealTimeStatisticsInstance
|
|
91
95
|
def fetch(task_channel: :unset)
|
|
92
96
|
params = Twilio::Values.of({'TaskChannel' => task_channel, })
|
|
@@ -125,8 +129,10 @@ module Twilio
|
|
|
125
129
|
# Initialize the TaskQueueRealTimeStatisticsInstance
|
|
126
130
|
# @param [Version] version Version that contains the resource
|
|
127
131
|
# @param [Hash] payload payload that contains response from Twilio
|
|
128
|
-
# @param [String] workspace_sid The
|
|
129
|
-
#
|
|
132
|
+
# @param [String] workspace_sid The SID of the Workspace that contains the
|
|
133
|
+
# TaskQueue.
|
|
134
|
+
# @param [String] task_queue_sid The SID of the TaskQueue from which these
|
|
135
|
+
# statistics were calculated.
|
|
130
136
|
# @return [TaskQueueRealTimeStatisticsInstance] TaskQueueRealTimeStatisticsInstance
|
|
131
137
|
def initialize(version, payload, workspace_sid: nil, task_queue_sid: nil)
|
|
132
138
|
super(version)
|
|
@@ -168,13 +174,13 @@ module Twilio
|
|
|
168
174
|
end
|
|
169
175
|
|
|
170
176
|
##
|
|
171
|
-
# @return [String] The
|
|
177
|
+
# @return [String] The SID of the Account that created the resource
|
|
172
178
|
def account_sid
|
|
173
179
|
@properties['account_sid']
|
|
174
180
|
end
|
|
175
181
|
|
|
176
182
|
##
|
|
177
|
-
# @return [Hash] The
|
|
183
|
+
# @return [Hash] The number of current Workers by Activity
|
|
178
184
|
def activity_statistics
|
|
179
185
|
@properties['activity_statistics']
|
|
180
186
|
end
|
|
@@ -192,31 +198,31 @@ module Twilio
|
|
|
192
198
|
end
|
|
193
199
|
|
|
194
200
|
##
|
|
195
|
-
# @return [String] The
|
|
201
|
+
# @return [String] The SID of the TaskQueue from which these statistics were calculated
|
|
196
202
|
def task_queue_sid
|
|
197
203
|
@properties['task_queue_sid']
|
|
198
204
|
end
|
|
199
205
|
|
|
200
206
|
##
|
|
201
|
-
# @return [Hash] The
|
|
207
|
+
# @return [Hash] The number of Tasks by priority
|
|
202
208
|
def tasks_by_priority
|
|
203
209
|
@properties['tasks_by_priority']
|
|
204
210
|
end
|
|
205
211
|
|
|
206
212
|
##
|
|
207
|
-
# @return [Hash] The
|
|
213
|
+
# @return [Hash] The number of Tasks by their current status
|
|
208
214
|
def tasks_by_status
|
|
209
215
|
@properties['tasks_by_status']
|
|
210
216
|
end
|
|
211
217
|
|
|
212
218
|
##
|
|
213
|
-
# @return [String] The total number of Workers available for Tasks in
|
|
219
|
+
# @return [String] The total number of Workers available for Tasks in the TaskQueue
|
|
214
220
|
def total_available_workers
|
|
215
221
|
@properties['total_available_workers']
|
|
216
222
|
end
|
|
217
223
|
|
|
218
224
|
##
|
|
219
|
-
# @return [String] The total number of Workers eligible for Tasks in
|
|
225
|
+
# @return [String] The total number of Workers eligible for Tasks in the TaskQueue, independent of their Activity state
|
|
220
226
|
def total_eligible_workers
|
|
221
227
|
@properties['total_eligible_workers']
|
|
222
228
|
end
|
|
@@ -228,22 +234,22 @@ module Twilio
|
|
|
228
234
|
end
|
|
229
235
|
|
|
230
236
|
##
|
|
231
|
-
# @return [String] The
|
|
237
|
+
# @return [String] The SID of the Workspace that contains the TaskQueue
|
|
232
238
|
def workspace_sid
|
|
233
239
|
@properties['workspace_sid']
|
|
234
240
|
end
|
|
235
241
|
|
|
236
242
|
##
|
|
237
|
-
# @return [String] The
|
|
243
|
+
# @return [String] The absolute URL of the TaskQueue statistics resource
|
|
238
244
|
def url
|
|
239
245
|
@properties['url']
|
|
240
246
|
end
|
|
241
247
|
|
|
242
248
|
##
|
|
243
249
|
# Fetch a TaskQueueRealTimeStatisticsInstance
|
|
244
|
-
# @param [String] task_channel
|
|
245
|
-
# TaskChannel
|
|
246
|
-
#
|
|
250
|
+
# @param [String] task_channel The TaskChannel for which to fetch statistics. Can
|
|
251
|
+
# be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or
|
|
252
|
+
# `default`.
|
|
247
253
|
# @return [TaskQueueRealTimeStatisticsInstance] Fetched TaskQueueRealTimeStatisticsInstance
|
|
248
254
|
def fetch(task_channel: :unset)
|
|
249
255
|
context.fetch(task_channel: task_channel, )
|
|
@@ -16,8 +16,10 @@ module Twilio
|
|
|
16
16
|
##
|
|
17
17
|
# Initialize the TaskQueueStatisticsList
|
|
18
18
|
# @param [Version] version Version that contains the resource
|
|
19
|
-
# @param [String] workspace_sid The
|
|
20
|
-
#
|
|
19
|
+
# @param [String] workspace_sid The SID of the Workspace that contains the
|
|
20
|
+
# TaskQueue.
|
|
21
|
+
# @param [String] task_queue_sid The SID of the TaskQueue from which these
|
|
22
|
+
# statistics were calculated.
|
|
21
23
|
# @return [TaskQueueStatisticsList] TaskQueueStatisticsList
|
|
22
24
|
def initialize(version, workspace_sid: nil, task_queue_sid: nil)
|
|
23
25
|
super(version)
|
|
@@ -71,8 +73,10 @@ module Twilio
|
|
|
71
73
|
##
|
|
72
74
|
# Initialize the TaskQueueStatisticsContext
|
|
73
75
|
# @param [Version] version Version that contains the resource
|
|
74
|
-
# @param [String] workspace_sid The
|
|
75
|
-
#
|
|
76
|
+
# @param [String] workspace_sid The SID of the Workspace with the TaskQueue to
|
|
77
|
+
# fetch.
|
|
78
|
+
# @param [String] task_queue_sid The SID of the TaskQueue for which to fetch
|
|
79
|
+
# statistics.
|
|
76
80
|
# @return [TaskQueueStatisticsContext] TaskQueueStatisticsContext
|
|
77
81
|
def initialize(version, workspace_sid, task_queue_sid)
|
|
78
82
|
super(version)
|
|
@@ -84,23 +88,20 @@ module Twilio
|
|
|
84
88
|
|
|
85
89
|
##
|
|
86
90
|
# Fetch a TaskQueueStatisticsInstance
|
|
87
|
-
# @param [Time] end_date
|
|
88
|
-
#
|
|
89
|
-
#
|
|
90
|
-
# @param [String] minutes
|
|
91
|
-
# past.
|
|
92
|
-
#
|
|
93
|
-
#
|
|
94
|
-
#
|
|
95
|
-
#
|
|
96
|
-
#
|
|
97
|
-
#
|
|
98
|
-
#
|
|
99
|
-
#
|
|
100
|
-
#
|
|
101
|
-
# would show splits of tasks that were canceled or accepted before or after 5
|
|
102
|
-
# seconds and respectively, 30 seconds. This is great for showing short abandoned
|
|
103
|
-
# tasks or tasks that failed to meet your SLA.
|
|
91
|
+
# @param [Time] end_date Only calculate statistics from this date and time and
|
|
92
|
+
# earlier, specified in GMT as an [ISO
|
|
93
|
+
# 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time.
|
|
94
|
+
# @param [String] minutes Only calculate statistics since this many minutes in the
|
|
95
|
+
# past. The default is 15 minutes.
|
|
96
|
+
# @param [Time] start_date Only calculate statistics from this date and time and
|
|
97
|
+
# later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
98
|
+
# @param [String] task_channel Only calculate real-time and cumulative statistics
|
|
99
|
+
# for the specified TaskChannel. Can be the TaskChannel's SID or its
|
|
100
|
+
# `unique_name`, such as `voice`, `sms`, or `default`.
|
|
101
|
+
# @param [String] split_by_wait_time A comma separated list of values that
|
|
102
|
+
# describes the thresholds, in seconds, to calculate statistics on. For each
|
|
103
|
+
# threshold specified, the number of Tasks canceled and reservations accepted
|
|
104
|
+
# above and below the specified thresholds in seconds are computed.
|
|
104
105
|
# @return [TaskQueueStatisticsInstance] Fetched TaskQueueStatisticsInstance
|
|
105
106
|
def fetch(end_date: :unset, minutes: :unset, start_date: :unset, task_channel: :unset, split_by_wait_time: :unset)
|
|
106
107
|
params = Twilio::Values.of({
|
|
@@ -145,8 +146,10 @@ module Twilio
|
|
|
145
146
|
# Initialize the TaskQueueStatisticsInstance
|
|
146
147
|
# @param [Version] version Version that contains the resource
|
|
147
148
|
# @param [Hash] payload payload that contains response from Twilio
|
|
148
|
-
# @param [String] workspace_sid The
|
|
149
|
-
#
|
|
149
|
+
# @param [String] workspace_sid The SID of the Workspace that contains the
|
|
150
|
+
# TaskQueue.
|
|
151
|
+
# @param [String] task_queue_sid The SID of the TaskQueue from which these
|
|
152
|
+
# statistics were calculated.
|
|
150
153
|
# @return [TaskQueueStatisticsInstance] TaskQueueStatisticsInstance
|
|
151
154
|
def initialize(version, payload, workspace_sid: nil, task_queue_sid: nil)
|
|
152
155
|
super(version)
|
|
@@ -182,60 +185,57 @@ module Twilio
|
|
|
182
185
|
end
|
|
183
186
|
|
|
184
187
|
##
|
|
185
|
-
# @return [String] The
|
|
188
|
+
# @return [String] The SID of the Account that created the resource
|
|
186
189
|
def account_sid
|
|
187
190
|
@properties['account_sid']
|
|
188
191
|
end
|
|
189
192
|
|
|
190
193
|
##
|
|
191
|
-
# @return [Hash]
|
|
194
|
+
# @return [Hash] An object that contains the cumulative statistics for the TaskQueue
|
|
192
195
|
def cumulative
|
|
193
196
|
@properties['cumulative']
|
|
194
197
|
end
|
|
195
198
|
|
|
196
199
|
##
|
|
197
|
-
# @return [Hash]
|
|
200
|
+
# @return [Hash] An object that contains the real-time statistics for the TaskQueue
|
|
198
201
|
def realtime
|
|
199
202
|
@properties['realtime']
|
|
200
203
|
end
|
|
201
204
|
|
|
202
205
|
##
|
|
203
|
-
# @return [String] The
|
|
206
|
+
# @return [String] The SID of the TaskQueue from which these statistics were calculated
|
|
204
207
|
def task_queue_sid
|
|
205
208
|
@properties['task_queue_sid']
|
|
206
209
|
end
|
|
207
210
|
|
|
208
211
|
##
|
|
209
|
-
# @return [String] The
|
|
212
|
+
# @return [String] The SID of the Workspace that contains the TaskQueue
|
|
210
213
|
def workspace_sid
|
|
211
214
|
@properties['workspace_sid']
|
|
212
215
|
end
|
|
213
216
|
|
|
214
217
|
##
|
|
215
|
-
# @return [String] The
|
|
218
|
+
# @return [String] The absolute URL of the TaskQueue statistics resource
|
|
216
219
|
def url
|
|
217
220
|
@properties['url']
|
|
218
221
|
end
|
|
219
222
|
|
|
220
223
|
##
|
|
221
224
|
# Fetch a TaskQueueStatisticsInstance
|
|
222
|
-
# @param [Time] end_date
|
|
223
|
-
#
|
|
224
|
-
#
|
|
225
|
-
# @param [String] minutes
|
|
226
|
-
# past.
|
|
227
|
-
#
|
|
228
|
-
#
|
|
229
|
-
#
|
|
230
|
-
#
|
|
231
|
-
#
|
|
232
|
-
#
|
|
233
|
-
#
|
|
234
|
-
#
|
|
235
|
-
#
|
|
236
|
-
# would show splits of tasks that were canceled or accepted before or after 5
|
|
237
|
-
# seconds and respectively, 30 seconds. This is great for showing short abandoned
|
|
238
|
-
# tasks or tasks that failed to meet your SLA.
|
|
225
|
+
# @param [Time] end_date Only calculate statistics from this date and time and
|
|
226
|
+
# earlier, specified in GMT as an [ISO
|
|
227
|
+
# 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time.
|
|
228
|
+
# @param [String] minutes Only calculate statistics since this many minutes in the
|
|
229
|
+
# past. The default is 15 minutes.
|
|
230
|
+
# @param [Time] start_date Only calculate statistics from this date and time and
|
|
231
|
+
# later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
232
|
+
# @param [String] task_channel Only calculate real-time and cumulative statistics
|
|
233
|
+
# for the specified TaskChannel. Can be the TaskChannel's SID or its
|
|
234
|
+
# `unique_name`, such as `voice`, `sms`, or `default`.
|
|
235
|
+
# @param [String] split_by_wait_time A comma separated list of values that
|
|
236
|
+
# describes the thresholds, in seconds, to calculate statistics on. For each
|
|
237
|
+
# threshold specified, the number of Tasks canceled and reservations accepted
|
|
238
|
+
# above and below the specified thresholds in seconds are computed.
|
|
239
239
|
# @return [TaskQueueStatisticsInstance] Fetched TaskQueueStatisticsInstance
|
|
240
240
|
def fetch(end_date: :unset, minutes: :unset, start_date: :unset, task_channel: :unset, split_by_wait_time: :unset)
|
|
241
241
|
context.fetch(
|
|
@@ -16,7 +16,8 @@ module Twilio
|
|
|
16
16
|
##
|
|
17
17
|
# Initialize the TaskQueuesStatisticsList
|
|
18
18
|
# @param [Version] version Version that contains the resource
|
|
19
|
-
# @param [String] workspace_sid The
|
|
19
|
+
# @param [String] workspace_sid The SID of the Workspace that contains the
|
|
20
|
+
# TaskQueue.
|
|
20
21
|
# @return [TaskQueuesStatisticsList] TaskQueuesStatisticsList
|
|
21
22
|
def initialize(version, workspace_sid: nil)
|
|
22
23
|
super(version)
|
|
@@ -30,25 +31,22 @@ module Twilio
|
|
|
30
31
|
# Lists TaskQueuesStatisticsInstance records from the API as a list.
|
|
31
32
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
32
33
|
# memory before returning.
|
|
33
|
-
# @param [Time] end_date
|
|
34
|
-
#
|
|
35
|
-
#
|
|
36
|
-
# @param [String] friendly_name
|
|
37
|
-
#
|
|
38
|
-
# @param [String] minutes
|
|
39
|
-
# past.
|
|
40
|
-
#
|
|
41
|
-
#
|
|
42
|
-
#
|
|
43
|
-
#
|
|
44
|
-
#
|
|
45
|
-
#
|
|
46
|
-
#
|
|
47
|
-
#
|
|
48
|
-
#
|
|
49
|
-
# would show splits of tasks that were canceled or accepted before or after 5
|
|
50
|
-
# seconds and respectively, 30 seconds. This is great for showing short abandoned
|
|
51
|
-
# tasks or tasks that failed to meet your SLA.
|
|
34
|
+
# @param [Time] end_date Only calculate statistics from this date and time and
|
|
35
|
+
# earlier, specified in GMT as an [ISO
|
|
36
|
+
# 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time.
|
|
37
|
+
# @param [String] friendly_name The `friendly_name` of the TaskQueue statistics to
|
|
38
|
+
# read.
|
|
39
|
+
# @param [String] minutes Only calculate statistics since this many minutes in the
|
|
40
|
+
# past. The default is 15 minutes.
|
|
41
|
+
# @param [Time] start_date Only calculate statistics from this date and time and
|
|
42
|
+
# later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
43
|
+
# @param [String] task_channel Only calculate statistics on this TaskChannel. Can
|
|
44
|
+
# be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or
|
|
45
|
+
# `default`.
|
|
46
|
+
# @param [String] split_by_wait_time A comma separated list of values that
|
|
47
|
+
# describes the thresholds, in seconds, to calculate statistics on. For each
|
|
48
|
+
# threshold specified, the number of Tasks canceled and reservations accepted
|
|
49
|
+
# above and below the specified thresholds in seconds are computed.
|
|
52
50
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
53
51
|
# guarantees to never return more than limit. Default is no limit
|
|
54
52
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -73,25 +71,22 @@ module Twilio
|
|
|
73
71
|
# Streams TaskQueuesStatisticsInstance records from the API as an Enumerable.
|
|
74
72
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
75
73
|
# is reached.
|
|
76
|
-
# @param [Time] end_date
|
|
77
|
-
#
|
|
78
|
-
#
|
|
79
|
-
# @param [String] friendly_name
|
|
80
|
-
#
|
|
81
|
-
# @param [String] minutes
|
|
82
|
-
# past.
|
|
83
|
-
#
|
|
84
|
-
#
|
|
85
|
-
#
|
|
86
|
-
#
|
|
87
|
-
#
|
|
88
|
-
#
|
|
89
|
-
#
|
|
90
|
-
#
|
|
91
|
-
#
|
|
92
|
-
# would show splits of tasks that were canceled or accepted before or after 5
|
|
93
|
-
# seconds and respectively, 30 seconds. This is great for showing short abandoned
|
|
94
|
-
# tasks or tasks that failed to meet your SLA.
|
|
74
|
+
# @param [Time] end_date Only calculate statistics from this date and time and
|
|
75
|
+
# earlier, specified in GMT as an [ISO
|
|
76
|
+
# 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time.
|
|
77
|
+
# @param [String] friendly_name The `friendly_name` of the TaskQueue statistics to
|
|
78
|
+
# read.
|
|
79
|
+
# @param [String] minutes Only calculate statistics since this many minutes in the
|
|
80
|
+
# past. The default is 15 minutes.
|
|
81
|
+
# @param [Time] start_date Only calculate statistics from this date and time and
|
|
82
|
+
# later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
83
|
+
# @param [String] task_channel Only calculate statistics on this TaskChannel. Can
|
|
84
|
+
# be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or
|
|
85
|
+
# `default`.
|
|
86
|
+
# @param [String] split_by_wait_time A comma separated list of values that
|
|
87
|
+
# describes the thresholds, in seconds, to calculate statistics on. For each
|
|
88
|
+
# threshold specified, the number of Tasks canceled and reservations accepted
|
|
89
|
+
# above and below the specified thresholds in seconds are computed.
|
|
95
90
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
96
91
|
# guarantees to never return more than limit. Default is no limit.
|
|
97
92
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -132,25 +127,22 @@ module Twilio
|
|
|
132
127
|
##
|
|
133
128
|
# Retrieve a single page of TaskQueuesStatisticsInstance records from the API.
|
|
134
129
|
# Request is executed immediately.
|
|
135
|
-
# @param [Time] end_date
|
|
136
|
-
#
|
|
137
|
-
#
|
|
138
|
-
# @param [String] friendly_name
|
|
139
|
-
#
|
|
140
|
-
# @param [String] minutes
|
|
141
|
-
# past.
|
|
142
|
-
#
|
|
143
|
-
#
|
|
144
|
-
#
|
|
145
|
-
#
|
|
146
|
-
#
|
|
147
|
-
#
|
|
148
|
-
#
|
|
149
|
-
#
|
|
150
|
-
#
|
|
151
|
-
# would show splits of tasks that were canceled or accepted before or after 5
|
|
152
|
-
# seconds and respectively, 30 seconds. This is great for showing short abandoned
|
|
153
|
-
# tasks or tasks that failed to meet your SLA.
|
|
130
|
+
# @param [Time] end_date Only calculate statistics from this date and time and
|
|
131
|
+
# earlier, specified in GMT as an [ISO
|
|
132
|
+
# 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time.
|
|
133
|
+
# @param [String] friendly_name The `friendly_name` of the TaskQueue statistics to
|
|
134
|
+
# read.
|
|
135
|
+
# @param [String] minutes Only calculate statistics since this many minutes in the
|
|
136
|
+
# past. The default is 15 minutes.
|
|
137
|
+
# @param [Time] start_date Only calculate statistics from this date and time and
|
|
138
|
+
# later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
139
|
+
# @param [String] task_channel Only calculate statistics on this TaskChannel. Can
|
|
140
|
+
# be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or
|
|
141
|
+
# `default`.
|
|
142
|
+
# @param [String] split_by_wait_time A comma separated list of values that
|
|
143
|
+
# describes the thresholds, in seconds, to calculate statistics on. For each
|
|
144
|
+
# threshold specified, the number of Tasks canceled and reservations accepted
|
|
145
|
+
# above and below the specified thresholds in seconds are computed.
|
|
154
146
|
# @param [String] page_token PageToken provided by the API
|
|
155
147
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
156
148
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
@@ -229,7 +221,8 @@ module Twilio
|
|
|
229
221
|
# Initialize the TaskQueuesStatisticsInstance
|
|
230
222
|
# @param [Version] version Version that contains the resource
|
|
231
223
|
# @param [Hash] payload payload that contains response from Twilio
|
|
232
|
-
# @param [String] workspace_sid The
|
|
224
|
+
# @param [String] workspace_sid The SID of the Workspace that contains the
|
|
225
|
+
# TaskQueue.
|
|
233
226
|
# @return [TaskQueuesStatisticsInstance] TaskQueuesStatisticsInstance
|
|
234
227
|
def initialize(version, payload, workspace_sid: nil)
|
|
235
228
|
super(version)
|
|
@@ -245,31 +238,31 @@ module Twilio
|
|
|
245
238
|
end
|
|
246
239
|
|
|
247
240
|
##
|
|
248
|
-
# @return [String] The
|
|
241
|
+
# @return [String] The SID of the Account that created the resource
|
|
249
242
|
def account_sid
|
|
250
243
|
@properties['account_sid']
|
|
251
244
|
end
|
|
252
245
|
|
|
253
246
|
##
|
|
254
|
-
# @return [Hash]
|
|
247
|
+
# @return [Hash] An object that contains the cumulative statistics for the TaskQueues
|
|
255
248
|
def cumulative
|
|
256
249
|
@properties['cumulative']
|
|
257
250
|
end
|
|
258
251
|
|
|
259
252
|
##
|
|
260
|
-
# @return [Hash]
|
|
253
|
+
# @return [Hash] An object that contains the real-time statistics for the TaskQueues
|
|
261
254
|
def realtime
|
|
262
255
|
@properties['realtime']
|
|
263
256
|
end
|
|
264
257
|
|
|
265
258
|
##
|
|
266
|
-
# @return [String] The
|
|
259
|
+
# @return [String] The SID of the TaskQueue from which these statistics were calculated
|
|
267
260
|
def task_queue_sid
|
|
268
261
|
@properties['task_queue_sid']
|
|
269
262
|
end
|
|
270
263
|
|
|
271
264
|
##
|
|
272
|
-
# @return [String] The
|
|
265
|
+
# @return [String] The SID of the Workspace that contains the TaskQueues
|
|
273
266
|
def workspace_sid
|
|
274
267
|
@properties['workspace_sid']
|
|
275
268
|
end
|