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

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

public class WorkflowStatistics
extends NextGenInstanceResource<TwilioTaskRouterClient>

Statistics about Workflow See the TaskRouter documentation.


Constructor Summary
WorkflowStatistics(TwilioTaskRouterClient client, String workspaceSid, String workflowSid)
          Instantiates a workflow statistics.
WorkflowStatistics(TwilioTaskRouterClient client, String workspaceSid, String workflowSid, Map<String,String> filters)
          Instantiates a workflow statistics.
 
Method Summary
 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 getTasksEntered()
          Get the number of tasks entered.
 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.
 String getWorkflowSid()
          Gets the workflow's sid.
 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

WorkflowStatistics

public WorkflowStatistics(TwilioTaskRouterClient client,
                          String workspaceSid,
                          String workflowSid)
Instantiates a workflow statistics.

Parameters:
client - the client
workspaceSid - the workspace sid
workflowSid - the workflow sid

WorkflowStatistics

public WorkflowStatistics(TwilioTaskRouterClient client,
                          String workspaceSid,
                          String workflowSid,
                          Map<String,String> filters)
Instantiates a workflow statistics.

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

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

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

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

getWorkflowSid

public String getWorkflowSid()
Gets the workflow's sid.

Returns:
the workflow's sid

getWorkspaceSid

public String getWorkspaceSid()
Gets the workspace sid.

Returns:
the workspace sid


Copyright © 2011 Twilio, Inc. All Rights Reserved.