Class WorkspaceCumulativeStatistics
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.taskrouter.v1.workspace.WorkspaceCumulativeStatistics
-
- All Implemented Interfaces:
Serializable
public class WorkspaceCumulativeStatistics extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static WorkspaceCumulativeStatisticsFetcher
fetcher(String pathWorkspaceSid)
Create a WorkspaceCumulativeStatisticsFetcher to execute fetch.static WorkspaceCumulativeStatistics
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a WorkspaceCumulativeStatistics object using the provided ObjectMapper.static WorkspaceCumulativeStatistics
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a WorkspaceCumulativeStatistics object using the provided ObjectMapper.String
getAccountSid()
Returns The The account_sid.Integer
getAvgTaskAcceptanceTime()
Returns The The average time from Task creation to acceptance.org.joda.time.DateTime
getEndTime()
Returns The The end_time.Integer
getReservationsAccepted()
Returns The The total number of Reservations accepted by Workers.Integer
getReservationsCanceled()
Returns The The total number of Reservations that were canceled.Integer
getReservationsCreated()
Returns The The total number of Reservations that were created for Workers.Integer
getReservationsRejected()
Returns The The total number of Reservations that were rejected.Integer
getReservationsRescinded()
Returns The The total number of Reservations that were rescinded.Integer
getReservationsTimedOut()
Returns The The total number of Reservations that were timed out.Map<String,Object>
getSplitByWaitTime()
Returns The The splits of the tasks canceled and accepted based on the provided SplitByWaitTime parameter..org.joda.time.DateTime
getStartTime()
Returns The The start_time.Integer
getTasksCanceled()
Returns The The total number of Tasks that were canceled.Integer
getTasksCompleted()
Returns The The total number of Tasks that were completed.Integer
getTasksCreated()
Returns The The total number of Tasks created.Integer
getTasksDeleted()
Returns The The total number of Tasks that were deleted.Integer
getTasksMoved()
Returns The The total number of Tasks that were moved from one queue to another.Integer
getTasksTimedOutInWorkflow()
Returns The The total number of Tasks that were timed out of their Workflows.URI
getUrl()
Returns The The url.Map<String,Object>
getWaitDurationUntilAccepted()
Returns The The wait duration stats for tasks that were accepted..Map<String,Object>
getWaitDurationUntilCanceled()
Returns The The wait duration stats for tasks that were canceled..String
getWorkspaceSid()
Returns The The workspace_sid.int
hashCode()
String
toString()
-
-
-
Method Detail
-
fetcher
public static WorkspaceCumulativeStatisticsFetcher fetcher(String pathWorkspaceSid)
Create a WorkspaceCumulativeStatisticsFetcher to execute fetch.- Parameters:
pathWorkspaceSid
- The workspace_sid- Returns:
- WorkspaceCumulativeStatisticsFetcher capable of executing the fetch
-
fromJson
public static WorkspaceCumulativeStatistics fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a WorkspaceCumulativeStatistics object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- WorkspaceCumulativeStatistics object represented by the provided JSON
-
fromJson
public static WorkspaceCumulativeStatistics fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a WorkspaceCumulativeStatistics object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- WorkspaceCumulativeStatistics object represented by the provided JSON
-
getAccountSid
public final String getAccountSid()
Returns The The account_sid.- Returns:
- The account_sid
-
getAvgTaskAcceptanceTime
public final Integer getAvgTaskAcceptanceTime()
Returns The The average time from Task creation to acceptance.- Returns:
- The average time from Task creation to acceptance
-
getStartTime
public final org.joda.time.DateTime getStartTime()
Returns The The start_time.- Returns:
- The start_time
-
getEndTime
public final org.joda.time.DateTime getEndTime()
Returns The The end_time.- Returns:
- The end_time
-
getReservationsCreated
public final Integer getReservationsCreated()
Returns The The total number of Reservations that were created for Workers.- Returns:
- The total number of Reservations that were created for Workers
-
getReservationsAccepted
public final Integer getReservationsAccepted()
Returns The The total number of Reservations accepted by Workers.- Returns:
- The total number of Reservations accepted by Workers
-
getReservationsRejected
public final Integer getReservationsRejected()
Returns The The total number of Reservations that were rejected.- Returns:
- The total number of Reservations that were rejected
-
getReservationsTimedOut
public final Integer getReservationsTimedOut()
Returns The The total number of Reservations that were timed out.- Returns:
- The total number of Reservations that were timed out
-
getReservationsCanceled
public final Integer getReservationsCanceled()
Returns The The total number of Reservations that were canceled.- Returns:
- The total number of Reservations that were canceled
-
getReservationsRescinded
public final Integer getReservationsRescinded()
Returns The The total number of Reservations that were rescinded.- Returns:
- The total number of Reservations that were rescinded
-
getSplitByWaitTime
public final Map<String,Object> getSplitByWaitTime()
Returns The The splits of the tasks canceled and accepted based on the provided SplitByWaitTime parameter..- Returns:
- The splits of the tasks canceled and accepted based on the provided SplitByWaitTime parameter.
-
getWaitDurationUntilAccepted
public final Map<String,Object> getWaitDurationUntilAccepted()
Returns The The wait duration stats for tasks that were accepted..- Returns:
- The wait duration stats for tasks that were accepted.
-
getWaitDurationUntilCanceled
public final Map<String,Object> getWaitDurationUntilCanceled()
Returns The The wait duration stats for tasks that were canceled..- Returns:
- The wait duration stats for tasks that were canceled.
-
getTasksCanceled
public final Integer getTasksCanceled()
Returns The The total number of Tasks that were canceled.- Returns:
- The total number of Tasks that were canceled
-
getTasksCompleted
public final Integer getTasksCompleted()
Returns The The total number of Tasks that were completed.- Returns:
- The total number of Tasks that were completed
-
getTasksCreated
public final Integer getTasksCreated()
Returns The The total number of Tasks created.- Returns:
- The total number of Tasks created
-
getTasksDeleted
public final Integer getTasksDeleted()
Returns The The total number of Tasks that were deleted.- Returns:
- The total number of Tasks that were deleted
-
getTasksMoved
public final Integer getTasksMoved()
Returns The The total number of Tasks that were moved from one queue to another.- Returns:
- The total number of Tasks that were moved from one queue to another
-
getTasksTimedOutInWorkflow
public final Integer getTasksTimedOutInWorkflow()
Returns The The total number of Tasks that were timed out of their Workflows.- Returns:
- The total number of Tasks that were timed out of their Workflows
-
getWorkspaceSid
public final String getWorkspaceSid()
Returns The The workspace_sid.- Returns:
- The workspace_sid
-
getUrl
public final URI getUrl()
Returns The The url.- Returns:
- The url
-
-