public class TaskQueueRealTimeStatistics extends Resource
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static TaskQueueRealTimeStatisticsFetcher |
fetcher(String pathWorkspaceSid,
String pathTaskQueueSid)
Create a TaskQueueRealTimeStatisticsFetcher to execute fetch.
|
static TaskQueueRealTimeStatistics |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a TaskQueueRealTimeStatistics object using
the provided ObjectMapper.
|
static TaskQueueRealTimeStatistics |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a TaskQueueRealTimeStatistics object using the
provided ObjectMapper.
|
String |
getAccountSid()
Returns The SID of the Account that created the resource.
|
List<Map<String,Object>> |
getActivityStatistics()
Returns The number of current Workers by Activity.
|
Integer |
getLongestRelativeTaskAgeInQueue()
Returns The relative age in the TaskQueue for the longest waiting Task..
|
String |
getLongestRelativeTaskSidInQueue()
Returns The SID of the Task waiting in the TaskQueue the longest..
|
Integer |
getLongestTaskWaitingAge()
Returns The age of the longest waiting Task.
|
String |
getLongestTaskWaitingSid()
Returns The SID of the longest waiting Task.
|
String |
getTaskQueueSid()
Returns The SID of the TaskQueue from which these statistics were calculated.
|
Map<String,Object> |
getTasksByPriority()
Returns The number of Tasks by priority.
|
Map<String,Object> |
getTasksByStatus()
Returns The number of Tasks by their current status.
|
Integer |
getTotalAvailableWorkers()
Returns The total number of Workers available for Tasks in the TaskQueue.
|
Integer |
getTotalEligibleWorkers()
Returns The total number of Workers eligible for Tasks in the TaskQueue,
independent of their Activity state.
|
Integer |
getTotalTasks()
Returns The total number of Tasks.
|
URI |
getUrl()
Returns The absolute URL of the TaskQueue statistics resource.
|
String |
getWorkspaceSid()
Returns The SID of the Workspace that contains the TaskQueue.
|
int |
hashCode() |
public static TaskQueueRealTimeStatisticsFetcher fetcher(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 static TaskQueueRealTimeStatistics fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static TaskQueueRealTimeStatistics fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getAccountSid()
public final List<Map<String,Object>> getActivityStatistics()
public final Integer getLongestTaskWaitingAge()
public final String getLongestTaskWaitingSid()
public final Integer getLongestRelativeTaskAgeInQueue()
public final String getLongestRelativeTaskSidInQueue()
public final String getTaskQueueSid()
public final Map<String,Object> getTasksByPriority()
public final Map<String,Object> getTasksByStatus()
public final Integer getTotalAvailableWorkers()
public final Integer getTotalEligibleWorkers()
public final Integer getTotalTasks()
public final String getWorkspaceSid()
public final URI getUrl()
Copyright © 2019 Twilio, Inc. All Rights Reserved.