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

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

public class WorkersStatistics
extends NextGenInstanceResource<TwilioTaskRouterClient>

Statistics about workers. See the TaskRouter documentation.


Constructor Summary
WorkersStatistics(TwilioTaskRouterClient client, String workspaceSid)
          Instantiates a worker statistics.
WorkersStatistics(TwilioTaskRouterClient client, String workspaceSid, Map<String,String> filters)
          Instantiates a worker statistics.
 
Method Summary
 Set<ActivityDuration> getActivityDurations()
          Get the activity durations.
 Set<ActivityStatistic> getActivityStatistics()
          Get the activity statistics.
 Calendar getEndTime()
          Get the end time.
 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.
 Calendar getStartTime()
          Get the start time.
 Integer getTasksAssigned()
          Get the number of tasks assigned.
 Integer getTotalWorkers()
          Get the 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

WorkersStatistics

public WorkersStatistics(TwilioTaskRouterClient client,
                         String workspaceSid)
Instantiates a worker statistics.

Parameters:
client - the client
workspaceSid - the workspace sid

WorkersStatistics

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

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

getActivityDurations

public Set<ActivityDuration> getActivityDurations()
Get the activity durations.

Returns:
the activity durations

getActivityStatistics

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

Returns:
the activity statistics

getEndTime

public Calendar getEndTime()
Get the end time.

Returns:
the end time

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

getStartTime

public Calendar getStartTime()
Get the start time.

Returns:
the start time

getTasksAssigned

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

Returns:
the number of tasks assigned

getTotalWorkers

public Integer getTotalWorkers()
Get the number of workers.

Returns:
the number of workers

getWorkspaceSid

public String getWorkspaceSid()
Gets the workspace sid.

Returns:
the workspace sid


Copyright © 2011 Twilio, Inc. All Rights Reserved.