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

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.TaskQueueStatistics

public class TaskQueueStatistics
extends NextGenInstanceResource<TwilioTaskRouterClient>

Statistics about task distribution. See the TaskRouter documentation.


Constructor Summary
TaskQueueStatistics(TwilioTaskRouterClient client, String workspaceSid, String queueSid)
          Instantiates a queue statistics.
TaskQueueStatistics(TwilioTaskRouterClient client, String workspaceSid, String queueSid, Map<String,String> filters)
          Instantiates a queue statistics.
TaskQueueStatistics(TwilioTaskRouterClient client, String workspaceSid, String queueSid, Map<String,String> filters, Map<String,Object> properties)
          Instantiates a queue 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.
 String getQueueSid()
          Gets the queue's sid.
 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 getTasksEntered()
          Get the number of tasks entered.
 Integer getTasksMoved()
          Get the number of tasks moved.
 Integer getTotalAvailableWorkers()
          Get the total number of available workers.
 Integer getTotalEligibleWorkers()
          Get the total number of eligible workers.
 Integer getTotalTasks()
          Get the total number of tasks.
 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

TaskQueueStatistics

public TaskQueueStatistics(TwilioTaskRouterClient client,
                           String workspaceSid,
                           String queueSid)
Instantiates a queue statistics.

Parameters:
client - the client
workspaceSid - the workspace sid
queueSid - the queue sid

TaskQueueStatistics

public TaskQueueStatistics(TwilioTaskRouterClient client,
                           String workspaceSid,
                           String queueSid,
                           Map<String,String> filters)
Instantiates a queue statistics.

Parameters:
client - the client
workspaceSid - the workspace sid
queueSid - the queue sid
filters - the filters

TaskQueueStatistics

public TaskQueueStatistics(TwilioTaskRouterClient client,
                           String workspaceSid,
                           String queueSid,
                           Map<String,String> filters,
                           Map<String,Object> properties)
Instantiates a queue statistics.

Parameters:
client - the client
workspaceSid - the workspace sid
queueSid - the queue sid
filters - the filters
properties - the properties
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

getQueueSid

public String getQueueSid()
Gets the queue's sid.

Returns:
the queue's sid

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

getTasksEntered

public Integer getTasksEntered()
Get the number of tasks entered.

Returns:
the number of tasks entered

getTasksMoved

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

Returns:
the number of tasks moved

getTotalAvailableWorkers

public Integer getTotalAvailableWorkers()
Get the total number of available workers.

Returns:
the total number of available workers

getTotalEligibleWorkers

public Integer getTotalEligibleWorkers()
Get the total number of eligible workers.

Returns:
the total number of eligible workers

getTotalTasks

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

Returns:
the total number of tasks

getWorkspaceSid

public String getWorkspaceSid()
Gets the workspace sid.

Returns:
the workspace sid


Copyright © 2011 Twilio, Inc. All Rights Reserved.