public class TaskQueueStatisticsFetcher extends Fetcher<TaskQueueStatistics>
Constructor and Description |
---|
TaskQueueStatisticsFetcher(String pathWorkspaceSid,
String pathTaskQueueSid)
Construct a new TaskQueueStatisticsFetcher.
|
Modifier and Type | Method and Description |
---|---|
TaskQueueStatistics |
fetch(TwilioRestClient client)
Make the request to the Twilio API to perform the fetch.
|
TaskQueueStatisticsFetcher |
setEndDate(ZonedDateTime endDate)
Only calculate statistics from this date and time and earlier, specified in
GMT as an ISO 8601
date-time..
|
TaskQueueStatisticsFetcher |
setMinutes(Integer minutes)
Only calculate statistics since this many minutes in the past.
|
TaskQueueStatisticsFetcher |
setSplitByWaitTime(String splitByWaitTime)
A comma separated list of values that describes the thresholds, in seconds,
to calculate statistics on.
|
TaskQueueStatisticsFetcher |
setStartDate(ZonedDateTime startDate)
Only calculate statistics from this date and time and later, specified in ISO 8601 format..
|
TaskQueueStatisticsFetcher |
setTaskChannel(String taskChannel)
Only calculate real-time and cumulative statistics for the specified
TaskChannel.
|
fetch, fetchAsync, fetchAsync
public TaskQueueStatisticsFetcher(String pathWorkspaceSid, String pathTaskQueueSid)
pathWorkspaceSid
- The SID of the Workspace with the TaskQueue to fetchpathTaskQueueSid
- The SID of the TaskQueue for which to fetch
statisticspublic TaskQueueStatisticsFetcher setEndDate(ZonedDateTime endDate)
endDate
- Only calculate statistics from on or before this datepublic TaskQueueStatisticsFetcher setMinutes(Integer minutes)
minutes
- Only calculate statistics since this many minutes in the pastpublic TaskQueueStatisticsFetcher setStartDate(ZonedDateTime startDate)
startDate
- Only calculate statistics from on or after this datepublic TaskQueueStatisticsFetcher setTaskChannel(String taskChannel)
taskChannel
- Only calculate real-time and cumulative statistics for
the specified TaskChannelpublic TaskQueueStatisticsFetcher setSplitByWaitTime(String splitByWaitTime)
splitByWaitTime
- A comma separated list of values that describes the
thresholds to calculate statistics onpublic TaskQueueStatistics fetch(TwilioRestClient client)
fetch
in class Fetcher<TaskQueueStatistics>
client
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.