Class WorkersStatisticsFetcher
- java.lang.Object
-
- com.twilio.base.Fetcher<WorkersStatistics>
-
- com.twilio.rest.taskrouter.v1.workspace.worker.WorkersStatisticsFetcher
-
public class WorkersStatisticsFetcher extends Fetcher<WorkersStatistics>
-
-
Constructor Summary
Constructors Constructor Description WorkersStatisticsFetcher(String pathWorkspaceSid)
Construct a new WorkersStatisticsFetcher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkersStatistics
fetch(TwilioRestClient client)
Make the request to the Twilio API to perform the fetch.WorkersStatisticsFetcher
setEndDate(org.joda.time.DateTime endDate)
Filter cumulative statistics by a end date.WorkersStatisticsFetcher
setFriendlyName(String friendlyName)
The friendly_name.WorkersStatisticsFetcher
setMinutes(Integer minutes)
Filter cumulative statistics by up to 'x' minutes in the past.WorkersStatisticsFetcher
setStartDate(org.joda.time.DateTime startDate)
Filter cumulative statistics by a start date.WorkersStatisticsFetcher
setTaskChannel(String taskChannel)
Filter cumulative statistics by TaskChannel.WorkersStatisticsFetcher
setTaskQueueName(String taskQueueName)
Filter the real-time and cumulative statistics based on Workers tied to a particular queue.WorkersStatisticsFetcher
setTaskQueueSid(String taskQueueSid)
Filter the real-time and cumulative statistics based on Workers tied to a particular queue.-
Methods inherited from class com.twilio.base.Fetcher
fetch, fetchAsync, fetchAsync
-
-
-
-
Constructor Detail
-
WorkersStatisticsFetcher
public WorkersStatisticsFetcher(String pathWorkspaceSid)
Construct a new WorkersStatisticsFetcher.- Parameters:
pathWorkspaceSid
- The workspace_sid
-
-
Method Detail
-
setMinutes
public WorkersStatisticsFetcher setMinutes(Integer 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..- Parameters:
minutes
- Filter cumulative statistics by up to 'x' minutes in the past.- Returns:
- this
-
setStartDate
public WorkersStatisticsFetcher setStartDate(org.joda.time.DateTime startDate)
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'..- Parameters:
startDate
- Filter cumulative statistics by a start date.- Returns:
- this
-
setEndDate
public WorkersStatisticsFetcher setEndDate(org.joda.time.DateTime endDate)
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'..- Parameters:
endDate
- Filter cumulative statistics by a end date.- Returns:
- this
-
setTaskQueueSid
public WorkersStatisticsFetcher setTaskQueueSid(String taskQueueSid)
Filter the real-time and cumulative statistics based on Workers tied to a particular queue.- Parameters:
taskQueueSid
- Filter the real-time and cumulative statistics based on Workers tied to a particular queue- Returns:
- this
-
setTaskQueueName
public WorkersStatisticsFetcher setTaskQueueName(String taskQueueName)
Filter the real-time and cumulative statistics based on Workers tied to a particular queue.- Parameters:
taskQueueName
- Filter the real-time and cumulative statistics based on Workers tied to a particular queue- Returns:
- this
-
setFriendlyName
public WorkersStatisticsFetcher setFriendlyName(String friendlyName)
The friendly_name.- Parameters:
friendlyName
- The friendly_name- Returns:
- this
-
setTaskChannel
public WorkersStatisticsFetcher setTaskChannel(String taskChannel)
Filter cumulative statistics by TaskChannel. Takes in a Unique Name ("voice", "sms", "default", etc.) or a TaskChannelSid..- Parameters:
taskChannel
- Filter cumulative statistics by TaskChannel.- Returns:
- this
-
fetch
public WorkersStatistics fetch(TwilioRestClient client)
Make the request to the Twilio API to perform the fetch.- Specified by:
fetch
in classFetcher<WorkersStatistics>
- Parameters:
client
- TwilioRestClient with which to make the request- Returns:
- Fetched WorkersStatistics
-
-