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