twilio-ruby 5.27.0 → 5.27.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. checksums.yaml +5 -5
  2. data/.dockerignore +1 -0
  3. data/CHANGES.md +13 -0
  4. data/CONTRIBUTING.md +2 -0
  5. data/Dockerfile +2 -2
  6. data/README.md +2 -2
  7. data/lib/twilio-ruby/http/http_client.rb +1 -1
  8. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +18 -18
  9. data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +9 -9
  10. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +9 -9
  11. data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +5 -5
  12. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +10 -1
  13. data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +1 -1
  14. data/lib/twilio-ruby/rest/fax/v1/fax.rb +12 -12
  15. data/lib/twilio-ruby/rest/flex_api.rb +6 -3
  16. data/lib/twilio-ruby/rest/flex_api/v1.rb +3 -3
  17. data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +23 -23
  18. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +39 -37
  19. data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +102 -96
  20. data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +20 -20
  21. data/lib/twilio-ruby/rest/messaging.rb +3 -2
  22. data/lib/twilio-ruby/rest/messaging/v1.rb +2 -3
  23. data/lib/twilio-ruby/rest/messaging/v1/service.rb +124 -91
  24. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +22 -18
  25. data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +22 -16
  26. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +18 -20
  27. data/lib/twilio-ruby/rest/messaging/v1/session.rb +48 -44
  28. data/lib/twilio-ruby/rest/messaging/v1/session/message.rb +46 -48
  29. data/lib/twilio-ruby/rest/messaging/v1/session/participant.rb +55 -62
  30. data/lib/twilio-ruby/rest/messaging/v1/session/webhook.rb +61 -65
  31. data/lib/twilio-ruby/rest/messaging/v1/webhook.rb +30 -36
  32. data/lib/twilio-ruby/rest/monitor.rb +4 -2
  33. data/lib/twilio-ruby/rest/monitor/v1.rb +2 -2
  34. data/lib/twilio-ruby/rest/monitor/v1/alert.rb +45 -57
  35. data/lib/twilio-ruby/rest/monitor/v1/event.rb +47 -50
  36. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +8 -8
  37. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +3 -3
  38. data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +6 -6
  39. data/lib/twilio-ruby/rest/preview/trusted_comms/device.rb +1 -1
  40. data/lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb +55 -55
  41. data/lib/twilio-ruby/rest/pricing/v2/voice.rb +2 -2
  42. data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +4 -4
  43. data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +1 -1
  44. data/lib/twilio-ruby/rest/serverless.rb +2 -1
  45. data/lib/twilio-ruby/rest/serverless/v1.rb +1 -2
  46. data/lib/twilio-ruby/rest/serverless/v1/service.rb +27 -28
  47. data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +22 -22
  48. data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +22 -22
  49. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +25 -24
  50. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +26 -24
  51. data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +21 -24
  52. data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +31 -31
  53. data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +35 -35
  54. data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +22 -22
  55. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +22 -22
  56. data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +12 -12
  57. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +7 -4
  58. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +6 -3
  59. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +15 -9
  60. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +6 -3
  61. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +15 -9
  62. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +9 -6
  63. data/lib/twilio-ruby/rest/taskrouter.rb +2 -1
  64. data/lib/twilio-ruby/rest/taskrouter/v1.rb +1 -1
  65. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +102 -95
  66. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +52 -44
  67. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +90 -81
  68. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +152 -136
  69. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +35 -29
  70. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +96 -89
  71. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +61 -61
  72. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +27 -21
  73. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +46 -46
  74. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +57 -64
  75. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +98 -79
  76. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +41 -39
  77. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +39 -33
  78. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +32 -31
  79. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +16 -11
  80. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +42 -42
  81. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +75 -72
  82. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +59 -51
  83. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +24 -18
  84. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +54 -46
  85. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +48 -46
  86. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +17 -17
  87. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +44 -42
  88. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +24 -18
  89. data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +3 -3
  90. data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +1 -2
  91. data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +1 -2
  92. data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +12 -12
  93. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +6 -6
  94. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +6 -6
  95. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +2 -1
  96. data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +2 -1
  97. data/lib/twilio-ruby/rest/video.rb +8 -8
  98. data/lib/twilio-ruby/rest/video/v1.rb +4 -7
  99. data/lib/twilio-ruby/rest/video/v1/composition.rb +89 -98
  100. data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +224 -195
  101. data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +34 -34
  102. data/lib/twilio-ruby/rest/video/v1/recording.rb +53 -55
  103. data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +32 -32
  104. data/lib/twilio-ruby/rest/video/v1/room.rb +71 -61
  105. data/lib/twilio-ruby/rest/video/v1/room/recording.rb +45 -33
  106. data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +56 -57
  107. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb +25 -22
  108. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +10 -10
  109. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribed_track.rb +24 -23
  110. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +1 -1
  111. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +5 -5
  112. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +2 -2
  113. data/lib/twilio-ruby/version.rb +1 -1
  114. data/spec/integration/conversations/v1/conversation/message_spec.rb +58 -0
  115. metadata +4 -4
@@ -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 workspace_sid
20
- # @param [String] task_queue_sid The task_queue_sid
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 workspace_sid
75
- # @param [String] task_queue_sid The task_queue_sid
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 Filter real-time and cumulative statistics by
88
- # TaskChannel. Takes in a Unique Name ("voice", "sms", "default", etc.) or a
89
- # TaskChannelSid.
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 workspace_sid
129
- # @param [String] task_queue_sid The task_queue_sid
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 account_sid
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 current Worker status count breakdown by Activity
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 task_queue_sid
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 Tasks broken down by priority
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 Tasks broken down by status
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 this TaskQueue
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 this TaskQueue, irrespective of Activity state.
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 workspace_sid
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 url
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 Filter real-time and cumulative statistics by
245
- # TaskChannel. Takes in a Unique Name ("voice", "sms", "default", etc.) or a
246
- # TaskChannelSid.
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 workspace_sid
20
- # @param [String] task_queue_sid The task_queue_sid
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 workspace_sid
75
- # @param [String] task_queue_sid The task_queue_sid
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 Filter cumulative statistics by an end date. This is
88
- # helpful for defining a range of statistics to capture. Input is a GMT ISO 8601
89
- # Timestamp.
90
- # @param [String] minutes Filter cumulative statistics by up to 'x' minutes in the
91
- # past. This is helpful for statistics for the last 15 minutes, 240 minutes (4
92
- # hours), and 480 minutes (8 hours) to see trends. Defaults to 15 minutes.
93
- # @param [Time] start_date Filter cumulative statistics by a start date. This is
94
- # helpful for defining a range of statistics to capture. Input is a GMT ISO 8601
95
- # Timestamp.
96
- # @param [String] task_channel Filter real-time and cumulative statistics by
97
- # TaskChannel. Takes in a Unique Name ("voice", "sms", "default", etc.) or a
98
- # TaskChannelSid.
99
- # @param [String] split_by_wait_time A comma separated values for viewing splits
100
- # of tasks canceled and accepted above the given threshold in seconds. Ex: "5,30"
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 workspace_sid
149
- # @param [String] task_queue_sid The task_queue_sid
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 account_sid
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] The cumulative
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] The realtime
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 task_queue_sid
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 workspace_sid
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 url
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 Filter cumulative statistics by an end date. This is
223
- # helpful for defining a range of statistics to capture. Input is a GMT ISO 8601
224
- # Timestamp.
225
- # @param [String] minutes Filter cumulative statistics by up to 'x' minutes in the
226
- # past. This is helpful for statistics for the last 15 minutes, 240 minutes (4
227
- # hours), and 480 minutes (8 hours) to see trends. Defaults to 15 minutes.
228
- # @param [Time] start_date Filter cumulative statistics by a start date. This is
229
- # helpful for defining a range of statistics to capture. Input is a GMT ISO 8601
230
- # Timestamp.
231
- # @param [String] task_channel Filter real-time and cumulative statistics by
232
- # TaskChannel. Takes in a Unique Name ("voice", "sms", "default", etc.) or a
233
- # TaskChannelSid.
234
- # @param [String] split_by_wait_time A comma separated values for viewing splits
235
- # of tasks canceled and accepted above the given threshold in seconds. Ex: "5,30"
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 ID of the Workspace that owns this TaskQueue
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 Filter cumulative statistics by an end date. This is
34
- # helpful for defining a range of statistics to capture. Input is a GMT ISO 8601
35
- # Timestamp.
36
- # @param [String] friendly_name Filter the TaskQueue stats based on a TaskQueue's
37
- # name (only for list resource)
38
- # @param [String] minutes Filter cumulative statistics by up to 'x' minutes in the
39
- # past. This is helpful for statistics for the last 15 minutes, 240 minutes (4
40
- # hours), and 480 minutes (8 hours) to see trends. Defaults to 15 minutes.
41
- # @param [Time] start_date Filter cumulative statistics by a start date. This is
42
- # helpful for defining a range of statistics to capture. Input is a GMT ISO 8601
43
- # Timestamp.
44
- # @param [String] task_channel Filter real-time and cumulative statistics by
45
- # TaskChannel. Takes in a Unique Name ("voice", "sms", "default", etc.) or a
46
- # TaskChannelSid.
47
- # @param [String] split_by_wait_time A comma separated values for viewing splits
48
- # of tasks canceled and accepted above the given threshold in seconds. Ex: "5,30"
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 Filter cumulative statistics by an end date. This is
77
- # helpful for defining a range of statistics to capture. Input is a GMT ISO 8601
78
- # Timestamp.
79
- # @param [String] friendly_name Filter the TaskQueue stats based on a TaskQueue's
80
- # name (only for list resource)
81
- # @param [String] minutes Filter cumulative statistics by up to 'x' minutes in the
82
- # past. This is helpful for statistics for the last 15 minutes, 240 minutes (4
83
- # hours), and 480 minutes (8 hours) to see trends. Defaults to 15 minutes.
84
- # @param [Time] start_date Filter cumulative statistics by a start date. This is
85
- # helpful for defining a range of statistics to capture. Input is a GMT ISO 8601
86
- # Timestamp.
87
- # @param [String] task_channel Filter real-time and cumulative statistics by
88
- # TaskChannel. Takes in a Unique Name ("voice", "sms", "default", etc.) or a
89
- # TaskChannelSid.
90
- # @param [String] split_by_wait_time A comma separated values for viewing splits
91
- # of tasks canceled and accepted above the given threshold in seconds. Ex: "5,30"
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 Filter cumulative statistics by an end date. This is
136
- # helpful for defining a range of statistics to capture. Input is a GMT ISO 8601
137
- # Timestamp.
138
- # @param [String] friendly_name Filter the TaskQueue stats based on a TaskQueue's
139
- # name (only for list resource)
140
- # @param [String] minutes Filter cumulative statistics by up to 'x' minutes in the
141
- # past. This is helpful for statistics for the last 15 minutes, 240 minutes (4
142
- # hours), and 480 minutes (8 hours) to see trends. Defaults to 15 minutes.
143
- # @param [Time] start_date Filter cumulative statistics by a start date. This is
144
- # helpful for defining a range of statistics to capture. Input is a GMT ISO 8601
145
- # Timestamp.
146
- # @param [String] task_channel Filter real-time and cumulative statistics by
147
- # TaskChannel. Takes in a Unique Name ("voice", "sms", "default", etc.) or a
148
- # TaskChannelSid.
149
- # @param [String] split_by_wait_time A comma separated values for viewing splits
150
- # of tasks canceled and accepted above the given threshold in seconds. Ex: "5,30"
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 ID of the Workspace that owns this TaskQueue
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 account_sid
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] The cumulative
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] The realtime
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 task_queue_sid
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 workspace_sid
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