Class WorkersStatisticsFetcher

    • Constructor Detail

      • WorkersStatisticsFetcher

        public WorkersStatisticsFetcher​(String pathWorkspaceSid)
        Construct a new WorkersStatisticsFetcher.
        Parameters:
        pathWorkspaceSid - The workspace_sid
    • Method Detail

      • setMinutes

        public WorkersStatisticsFetcher setMinutes​(Integer minutes)
        Filter cumulative statistics by up to 'x' minutes in the past. This is helpful for statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. Defaults to 15 minutes..
        Parameters:
        minutes - Filter cumulative statistics by up to 'x' minutes in the past.
        Returns:
        this
      • setStartDate

        public WorkersStatisticsFetcher setStartDate​(org.joda.time.DateTime startDate)
        Filter cumulative statistics by a start date. This is helpful for defining a range of statistics to capture. Input is a string of the format: yyyy-MM-dd'T'HH:mm:ss'Z'..
        Parameters:
        startDate - Filter cumulative statistics by a start date.
        Returns:
        this
      • setEndDate

        public WorkersStatisticsFetcher setEndDate​(org.joda.time.DateTime endDate)
        Filter cumulative statistics by a end date. This is helpful for defining a range of statistics to capture. Input is a string of the format: yyyy-MM-dd'T'HH:mm:ss'Z'..
        Parameters:
        endDate - Filter cumulative statistics by a end date.
        Returns:
        this
      • setTaskQueueSid

        public WorkersStatisticsFetcher setTaskQueueSid​(String taskQueueSid)
        Filter the real-time and cumulative statistics based on Workers tied to a particular queue.
        Parameters:
        taskQueueSid - Filter the real-time and cumulative statistics based on Workers tied to a particular queue
        Returns:
        this
      • setTaskQueueName

        public WorkersStatisticsFetcher setTaskQueueName​(String taskQueueName)
        Filter the real-time and cumulative statistics based on Workers tied to a particular queue.
        Parameters:
        taskQueueName - Filter the real-time and cumulative statistics based on Workers tied to a particular queue
        Returns:
        this
      • setFriendlyName

        public WorkersStatisticsFetcher setFriendlyName​(String friendlyName)
        The friendly_name.
        Parameters:
        friendlyName - The friendly_name
        Returns:
        this
      • setTaskChannel

        public WorkersStatisticsFetcher setTaskChannel​(String taskChannel)
        Filter cumulative statistics by TaskChannel. Takes in a Unique Name ("voice", "sms", "default", etc.) or a TaskChannelSid..
        Parameters:
        taskChannel - Filter cumulative statistics by TaskChannel.
        Returns:
        this