NAME

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

SYNOPSIS

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

for my $task_queues_statistics ($client->taskrouter->v1->workspaces($workspace_sid)->task_queues->statistics->read({}, 20)) {
  ...
}

DESCRIPTION

This file holds TaskQueuesStatisticsList, TaskQueuesStatisticsPage and TaskQueuesStatisticsInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

TaskQueuesStatisticsList

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

read

my @records = $client->taskrouter->v1->workspaces($workspace_sid)->task_queues->statistics->read(\%options, $limit, $page_size);

Returns the records as a list, fetching as many pages as it needs.

The options are:

end_date

Only calculate statistics from this date and time and earlier, specified in GMT as an ISO 8601 date-time. A string, or an object with an epoch method. See "iso8601_date_time" in Twilio::Serialize.

friendly_name

The friendly_name of the TaskQueue statistics to read.

minutes

Only calculate statistics since this many minutes in the past. The default is 15 minutes.

split_by_wait_time

A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed.

start_date

Only calculate statistics from this date and time and later, specified in ISO 8601 format. A string, or an object with an epoch method. See "iso8601_date_time" in Twilio::Serialize.

task_channel

Only calculate statistics on this TaskChannel. Can be the TaskChannel's SID or its unique_name, such as voice, sms, or default.

stream

my $stream = $client->taskrouter->v1->workspaces($workspace_sid)->task_queues->statistics->stream(\%options, $limit, $page_size);

Takes the same arguments as "read", and returns a Twilio::Stream.

page

my $page = $client->taskrouter->v1->workspaces($workspace_sid)->task_queues->statistics->page(\%options, $page_size, $page_token, $page_number);

Fetches one page, and returns a Twilio::Page.

get_page

my $page = $client->taskrouter->v1->workspaces($workspace_sid)->task_queues->statistics->get_page($url);

Fetches the page at a URL given by Twilio.

TaskQueuesStatisticsPage

A Twilio::Page of TaskQueuesStatisticsInstance objects.

records_key

build_instance

Used by Twilio::Page.

TaskQueuesStatisticsInstance

See also Twilio::InstanceResource.

Its fields are:

account_sid

The SID of the Account that created the TaskQueue resource.

cumulative

An object that contains the cumulative statistics for the TaskQueues.

realtime

An object that contains the real-time statistics for the TaskQueues.

task_queue_sid

The SID of the TaskQueue from which these statistics were calculated.

workspace_sid

The SID of the Workspace that contains the TaskQueues.

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.