public class WorkersStatistics extends Resource
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static WorkersStatisticsFetcher |
fetcher(String pathWorkspaceSid)
Create a WorkersStatisticsFetcher to execute fetch.
|
static WorkersStatistics |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a WorkersStatistics object using the
provided ObjectMapper.
|
static WorkersStatistics |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a WorkersStatistics object using the provided
ObjectMapper.
|
String |
getAccountSid()
Returns The SID of the Account that created the resource.
|
Map<String,Object> |
getCumulative()
Returns An object that contains the cumulative statistics for the Worker.
|
Map<String,Object> |
getRealtime()
Returns An object that contains the real-time statistics for the Worker.
|
URI |
getUrl()
Returns The absolute URL of the Worker statistics resource.
|
String |
getWorkspaceSid()
Returns The SID of the Workspace that contains the Worker.
|
int |
hashCode() |
public static WorkersStatisticsFetcher fetcher(String pathWorkspaceSid)
pathWorkspaceSid
- The SID of the Workspace with the Worker to fetchpublic static WorkersStatistics fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static WorkersStatistics fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final Map<String,Object> getRealtime()
public final Map<String,Object> getCumulative()
public final String getAccountSid()
public final String getWorkspaceSid()
public final URI getUrl()
Copyright © 2019 Twilio, Inc. All Rights Reserved.