com.twilio.sdk.resource.instance.taskrouter
Class WorkspaceStatistics

java.lang.Object
  extended by com.twilio.sdk.resource.Resource<C>
      extended by com.twilio.sdk.resource.InstanceResource<C>
          extended by com.twilio.sdk.resource.NextGenInstanceResource<TwilioTaskRouterClient>
              extended by com.twilio.sdk.resource.instance.taskrouter.WorkspaceStatistics

public class WorkspaceStatistics
extends NextGenInstanceResource<TwilioTaskRouterClient>

Statistics about Workspace See the TaskRouter documentation.


Constructor Summary
WorkspaceStatistics(TwilioTaskRouterClient client, String workspaceSid)
          Instantiates a workspace statistics.
WorkspaceStatistics(TwilioTaskRouterClient client, String workspaceSid, Map<String,String> filters)
          Instantiates a workspace statistics.
 
Method Summary
 Set<ActivityStatistic> getActivityStatistics()
          Get the activity statistics.
 Integer getAssignedTasks()
          Get the number of assigned tasks.
 Double getAverageTaskAcceptanceTime()
          Get the average time of task acceptance in seconds.
 Calendar getEndTime()
          Get the end time.
 Integer getLongestTaskWaitingAge()
          Get the longest task waiting age in seconds.
 String getLongestTaskWaitingSid()
          Get the sid of the longest waiting task.
 Integer getPendingTasks()
          Get the number of pending tasks.
 Integer getReservationsAccepted()
          Get the number of accepted reservations.
 Integer getReservationsRejected()
          Get the number of rejected reservations.
 Integer getReservationsTimedOut()
          Get the number of timed out reservations.
 Integer getReservedTasks()
          Get the number of reserved tasks.
 Calendar getStartTime()
          Get the start time.
 Integer getTasksCanceled()
          Get the number of tasks canceled.
 Integer getTasksCreated()
          Get the number of tasks created.
 Integer getTasksMoved()
          Get the number of tasks moved.
 Integer getTasksTimedOutInWorkflow()
          Get the number of tasks that timed out in the workflow.
 Integer getTotalTasks()
          Get the total number of tasks.
 Integer getTotalWorkers()
          Get the total number of workers.
 String getWorkspaceSid()
          Gets the workspace sid.
 
Methods inherited from class com.twilio.sdk.resource.InstanceResource
getObject, getProperty, update, update
 
Methods inherited from class com.twilio.sdk.resource.Resource
setRequestAccountSid
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkspaceStatistics

public WorkspaceStatistics(TwilioTaskRouterClient client,
                           String workspaceSid)
Instantiates a workspace statistics.

Parameters:
client - the client
workspaceSid - the workspace sid

WorkspaceStatistics

public WorkspaceStatistics(TwilioTaskRouterClient client,
                           String workspaceSid,
                           Map<String,String> filters)
Instantiates a workspace statistics.

Parameters:
client - the client
workspaceSid - the workspace sid
filters - the filters
Method Detail

getActivityStatistics

public Set<ActivityStatistic> getActivityStatistics()
Get the activity statistics.

Returns:
the activity statistics

getAssignedTasks

public Integer getAssignedTasks()
Get the number of assigned tasks.

Returns:
number of assigned tasks

getAverageTaskAcceptanceTime

public Double getAverageTaskAcceptanceTime()
Get the average time of task acceptance in seconds.

Returns:
the average time of task acceptance in seconds

getEndTime

public Calendar getEndTime()
Get the end time.

Returns:
the end time

getLongestTaskWaitingAge

public Integer getLongestTaskWaitingAge()
Get the longest task waiting age in seconds.

Returns:
the longest task waiting age in seconds

getLongestTaskWaitingSid

public String getLongestTaskWaitingSid()
Get the sid of the longest waiting task.

Returns:
the sid of the longest waiting task

getPendingTasks

public Integer getPendingTasks()
Get the number of pending tasks.

Returns:
the number of pending tasks

getReservationsAccepted

public Integer getReservationsAccepted()
Get the number of accepted reservations.

Returns:
the number of accepted reservations

getReservationsRejected

public Integer getReservationsRejected()
Get the number of rejected reservations.

Returns:
the number of rejected reservations

getReservationsTimedOut

public Integer getReservationsTimedOut()
Get the number of timed out reservations.

Returns:
the number of timed out reservations

getReservedTasks

public Integer getReservedTasks()
Get the number of reserved tasks.

Returns:
the number of reserved tasks

getStartTime

public Calendar getStartTime()
Get the start time.

Returns:
the start time

getTasksCanceled

public Integer getTasksCanceled()
Get the number of tasks canceled.

Returns:
the number of tasks canceled

getTasksCreated

public Integer getTasksCreated()
Get the number of tasks created.

Returns:
the number of tasks created

getTasksMoved

public Integer getTasksMoved()
Get the number of tasks moved.

Returns:
the number of tasks moved

getTasksTimedOutInWorkflow

public Integer getTasksTimedOutInWorkflow()
Get the number of tasks that timed out in the workflow.

Returns:
the number of tasks that timed out in the workflow

getTotalTasks

public Integer getTotalTasks()
Get the total number of tasks.

Returns:
the total number of tasks

getTotalWorkers

public Integer getTotalWorkers()
Get the total number of workers.

Returns:
the total number of workers

getWorkspaceSid

public String getWorkspaceSid()
Gets the workspace sid.

Returns:
the workspace sid


Copyright © 2011 Twilio, Inc. All Rights Reserved.