public class WorkerStatisticsFetcher extends Fetcher<WorkerStatistics>
Constructor and Description |
---|
WorkerStatisticsFetcher(String pathWorkspaceSid,
String pathWorkerSid)
Construct a new WorkerStatisticsFetcher.
|
Modifier and Type | Method and Description |
---|---|
WorkerStatistics |
fetch(TwilioRestClient client)
Make the request to the Twilio API to perform the fetch.
|
WorkerStatisticsFetcher |
setEndDate(ZonedDateTime endDate)
Only include usage that occurred on or before this date, specified in GMT as
an ISO 8601 date-time..
|
WorkerStatisticsFetcher |
setMinutes(Integer minutes)
Only calculate statistics since this many minutes in the past.
|
WorkerStatisticsFetcher |
setStartDate(ZonedDateTime startDate)
Only calculate statistics from this date and time and later, specified in ISO 8601 format..
|
WorkerStatisticsFetcher |
setTaskChannel(String taskChannel)
Only calculate statistics on this TaskChannel.
|
fetch, fetchAsync, fetchAsync
public WorkerStatisticsFetcher(String pathWorkspaceSid, String pathWorkerSid)
pathWorkspaceSid
- The SID of the Workspace with the WorkerChannel to
fetchpathWorkerSid
- The SID of the Worker with the WorkerChannel to fetchpublic WorkerStatisticsFetcher setMinutes(Integer minutes)
minutes
- Only calculate statistics since this many minutes in the pastpublic WorkerStatisticsFetcher setStartDate(ZonedDateTime startDate)
startDate
- Only calculate statistics from on or after this datepublic WorkerStatisticsFetcher setEndDate(ZonedDateTime endDate)
endDate
- Only include usage that occurred on or before this datepublic WorkerStatisticsFetcher setTaskChannel(String taskChannel)
taskChannel
- Only calculate statistics on this TaskChannelpublic WorkerStatistics fetch(TwilioRestClient client)
fetch
in class Fetcher<WorkerStatistics>
client
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.