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

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

public class WorkerStatistics
extends NextGenInstanceResource<TwilioTaskRouterClient>

Statistics about Worker. See the TaskRouter documentation.


Constructor Summary
WorkerStatistics(TwilioTaskRouterClient client, String workspaceSid, String workerSid)
          Instantiates a worker statistics.
WorkerStatistics(TwilioTaskRouterClient client, String workspaceSid, String workerSid, Map<String,String> filters)
          Instantiates a worker statistics.
 
Method Summary
 Set<ActivityDuration> getActivityDurations()
          Get the activity durations.
 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.
 String getWorkerSid()
          Gets the worker'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

WorkerStatistics

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

Parameters:
client - the client
workspaceSid - the workspace sid
workerSid - the worker sid

WorkerStatistics

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

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

getActivityDurations

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

Returns:
the activity durations

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

getWorkerSid

public String getWorkerSid()
Gets the worker's sid.

Returns:
the worker's sid

getWorkspaceSid

public String getWorkspaceSid()
Gets the workspace sid.

Returns:
the workspace sid


Copyright © 2011 Twilio, Inc. All Rights Reserved.