NAME

Twilio::Rest::Taskrouter::V1::Workspace::TaskQueue::TaskQueueBulkRealTimeStatistics - The TaskQueueBulkRealTimeStatistics resource

SYNOPSIS

my $client = Twilio::Rest::Client->new($account_sid, $auth_token);

my $task_queue_bulk_real_time_statistics = $client->taskrouter->v1->workspaces($workspace_sid)->task_queues->bulk_real_time_statistics->create(\%body);

DESCRIPTION

This file holds TaskQueueBulkRealTimeStatisticsList and TaskQueueBulkRealTimeStatisticsInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

TaskQueueBulkRealTimeStatisticsList

Returned by $client->taskrouter->v1->workspaces($workspace_sid)->task_queues->bulk_real_time_statistics. See also Twilio::ListResource.

create

my $task_queue_bulk_real_time_statistics = $client->taskrouter->v1->workspaces($workspace_sid)->task_queues->bulk_real_time_statistics->create(\%body);

Fetch a Task Queue Real Time Statistics in bulk for the array of TaskQueue SIDs, support upto 50 in a request. Returns a TaskQueueBulkRealTimeStatisticsInstance.

%body is sent as JSON. It can be left out. When given, it takes the names Twilio's API documentation uses.

TaskQueueBulkRealTimeStatisticsInstance

See also Twilio::InstanceResource.

Its fields are:

account_sid

The SID of the Account that created the TaskQueue resource.

task_queue_data

The real-time statistics for each requested TaskQueue SID. task_queue_data returns the following attributes: task_queue_sid: The SID of the TaskQueue from which these statistics were calculated. total_available_workers: The total number of Workers available for Tasks in the TaskQueue. total_eligible_workers: The total number of Workers eligible for Tasks in the TaskQueue, regardless of their Activity state. total_tasks: The total number of Tasks. longest_task_waiting_age: The age of the longest waiting Task. longest_task_waiting_sid: The SID of the longest waiting Task. tasks_by_status: The number of Tasks grouped by their current status. tasks_by_priority: The number of Tasks grouped by priority. activity_statistics: The number of current Workers grouped by Activity.

task_queue_response_count

The number of TaskQueue statistics received in task_queue_data.

url

The absolute URL of the TaskQueue statistics resource.

workspace_sid

The SID of the Workspace that contains the TaskQueue.

CONSTRUCTORS

new

Objects here come from the methods above, so there is no need to call new directly.

LICENSE

Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.