lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb in twilio-ruby-5.8.1 vs lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb in twilio-ruby-5.9.0
- old
+ new
@@ -1,10 +1,12 @@
##
# This code was generated by
# \ / _ _ _| _ _
# | (_)\/(_)(_|\/| |(/_ v1.0.0
# / /
+#
+# frozen_string_literal: true
module Twilio
module REST
class Taskrouter < Domain
class V1 < Version
@@ -80,14 +82,21 @@
@uri = "/Workspaces/#{@solution[:workspace_sid]}/Workers/#{@solution[:worker_sid]}/Statistics"
end
##
# Fetch a WorkerStatisticsInstance
- # @param [String] minutes The minutes
- # @param [Time] start_date The start_date
- # @param [Time] end_date The end_date
- # @param [String] task_channel The task_channel
+ # @param [String] minutes Filter cumulative statistics by up to ‘x’ minutes in the
+ # past. This is helpful for statistics for the last 15 minutes, 240 minutes (4
+ # hours), and 480 minutes (8 hours) to see trends. Defaults to 15 minutes.
+ # @param [Time] start_date Filter cumulative statistics by a start date. This is
+ # helpful for defining a range of statistics to capture. Input is a string of the
+ # format: yyyy-MM-dd’T’HH:mm:ss’Z’.
+ # @param [Time] end_date Filter cumulative statistics by a end date. This is
+ # helpful for defining a range of statistics to capture. Input is a string of the
+ # format: yyyy-MM-dd’T’HH:mm:ss’Z’.
+ # @param [String] task_channel Filter cumulative statistics by TaskChannel. Takes
+ # in a Unique Name ("voice", "sms", "default", etc.) or a TaskChannelSid.
# @return [WorkerStatisticsInstance] Fetched WorkerStatisticsInstance
def fetch(minutes: :unset, start_date: :unset, end_date: :unset, task_channel: :unset)
params = Twilio::Values.of({
'Minutes' => minutes,
'StartDate' => Twilio.serialize_iso8601_datetime(start_date),
@@ -187,13 +196,20 @@
@properties['url']
end
##
# Fetch a WorkerStatisticsInstance
- # @param [String] minutes The minutes
- # @param [Time] start_date The start_date
- # @param [Time] end_date The end_date
- # @param [String] task_channel The task_channel
+ # @param [String] minutes Filter cumulative statistics by up to ‘x’ minutes in the
+ # past. This is helpful for statistics for the last 15 minutes, 240 minutes (4
+ # hours), and 480 minutes (8 hours) to see trends. Defaults to 15 minutes.
+ # @param [Time] start_date Filter cumulative statistics by a start date. This is
+ # helpful for defining a range of statistics to capture. Input is a string of the
+ # format: yyyy-MM-dd’T’HH:mm:ss’Z’.
+ # @param [Time] end_date Filter cumulative statistics by a end date. This is
+ # helpful for defining a range of statistics to capture. Input is a string of the
+ # format: yyyy-MM-dd’T’HH:mm:ss’Z’.
+ # @param [String] task_channel Filter cumulative statistics by TaskChannel. Takes
+ # in a Unique Name ("voice", "sms", "default", etc.) or a TaskChannelSid.
# @return [WorkerStatisticsInstance] Fetched WorkerStatisticsInstance
def fetch(minutes: :unset, start_date: :unset, end_date: :unset, task_channel: :unset)
context.fetch(
minutes: minutes,
start_date: start_date,
\ No newline at end of file