Class: WorkflowRealTimeStatisticsInstance

Twilio.Taskrouter.V1.WorkspaceContext.WorkflowContext.WorkflowRealTimeStatisticsInstance(version, payload, workspaceSid, workflowSid)

new WorkflowRealTimeStatisticsInstance(version, payload, workspaceSid, workflowSid)

Initialize the WorkflowRealTimeStatisticsContext
Parameters:
Name Type Description
version V1 Version of the resource
payload WorkflowRealTimeStatisticsPayload The instance payload
workspaceSid sid The SID of the Workspace that contains the Workflow.
workflowSid sid Returns the list of Tasks that are being controlled by the Workflow with the specified SID value
Properties:
Name Type Description
accountSid string The SID of the Account that created the resource
longestTaskWaitingAge number The age of the longest waiting Task
longestTaskWaitingSid string The SID of the longest waiting Task
tasksByPriority object The number of Tasks by priority
tasksByStatus object The number of Tasks by their current status
totalTasks number The total number of Tasks
workflowSid string Returns the list of Tasks that are being controlled by the Workflow with the specified SID value
workspaceSid string The SID of the Workspace that contains the Workflow.
url string The absolute URL of the Workflow statistics resource
Source:

Methods

fetch(optsopt, callbackopt) → {Promise}

fetch a WorkflowRealTimeStatisticsInstance
Parameters:
Name Type Attributes Description
opts object <optional>
Options for request
Properties
Name Type Attributes Description
taskChannel string <optional>
Only calculate real-time statistics on this TaskChannel
callback function <optional>
Callback to handle processed record
Source:
Returns:
Resolves to processed WorkflowRealTimeStatisticsInstance
Type
Promise

toJSON()

Provide a user-friendly representation
Source:
Returns:
Object