def __init__(self, version, payload, workspace_sid, workflow_sid):
        """
        Initialize the WorkflowRealTimeStatisticsInstance

        :returns: twilio.rest.taskrouter.v1.workspace.workflow.workflow_real_time_statistics.WorkflowRealTimeStatisticsInstance
        :rtype: twilio.rest.taskrouter.v1.workspace.workflow.workflow_real_time_statistics.WorkflowRealTimeStatisticsInstance
        """
        super(WorkflowRealTimeStatisticsInstance, self).__init__(version)

        # Marshaled Properties
        self._properties = {
            'account_sid': payload['account_sid'],
            'longest_task_waiting_age': deserialize.integer(payload['longest_task_waiting_age']),
            'longest_task_waiting_sid': payload['longest_task_waiting_sid'],
            'tasks_by_priority': payload['tasks_by_priority'],
            'tasks_by_status': payload['tasks_by_status'],
            'total_tasks': deserialize.integer(payload['total_tasks']),
            'workflow_sid': payload['workflow_sid'],
            'workspace_sid': payload['workspace_sid'],
            'url': payload['url'],
        }

        # Context
        self._context = None
        self._solution = {'workspace_sid': workspace_sid, 'workflow_sid': workflow_sid, }
def __init__ ( self , version , payload , workspace_sid , workflow_sid ) : super ( WorkflowRealTimeStatisticsInstance , self ) . __init__ ( version ) self . _properties = { 'account_sid' : payload [ 'account_sid' ] , 'longest_task_waiting_age' : deserialize . integer ( payload [ 'longest_task_waiting_age' ] ) , 'longest_task_waiting_sid' : payload [ 'longest_task_waiting_sid' ] , 'tasks_by_priority' : payload [ 'tasks_by_priority' ] , 'tasks_by_status' : payload [ 'tasks_by_status' ] , 'total_tasks' : deserialize . integer ( payload [ 'total_tasks' ] ) , 'workflow_sid' : payload [ 'workflow_sid' ] , 'workspace_sid' : payload [ 'workspace_sid' ] , 'url' : payload [ 'url' ] , } self . _context = None self . _solution = { 'workspace_sid' : workspace_sid , 'workflow_sid' : workflow_sid , }
Initialize the WorkflowRealTimeStatisticsInstance

        :returns: twilio.rest.taskrouter.v1.workspace.workflow.workflow_real_time_statistics.WorkflowRealTimeStatisticsInstance
        :rtype: twilio.rest.taskrouter.v1.workspace.workflow.workflow_real_time_statistics.WorkflowRealTimeStatisticsInstance