NAME

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

SYNOPSIS

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

my $task_queue_cumulative_statistics = $client->taskrouter->v1->workspaces($workspace_sid)->task_queues($task_queue_sid)->cumulative_statistics->fetch;

DESCRIPTION

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

TaskQueueCumulativeStatisticsContext

Returned by $client->taskrouter->v1->workspaces($workspace_sid)->task_queues($task_queue_sid)->cumulative_statistics. It makes no request until one of these methods is called.

fetch

my $task_queue_cumulative_statistics = $client->taskrouter->v1->workspaces($workspace_sid)->task_queues($task_queue_sid)->cumulative_statistics->fetch(\%options);

Returns a TaskQueueCumulativeStatisticsInstance.

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.

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. TaskRouter will calculate statistics on up to 10,000 Tasks/Reservations for any given threshold.

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 cumulative statistics on this TaskChannel. Can be the TaskChannel's SID or its unique_name, such as voice, sms, or default.

TaskQueueCumulativeStatisticsInstance

See also Twilio::InstanceResource.

It has fetch, which work as they do on the context.

Its fields are:

account_sid

The SID of the Account that created the TaskQueue resource.

avg_task_acceptance_time

The average time in seconds between Task creation and acceptance.

end_time

The end of the interval during which these statistics were calculated, in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

reservations_accepted

The total number of Reservations accepted for Tasks in the TaskQueue.

reservations_canceled

The total number of Reservations canceled for Tasks in the TaskQueue.

reservations_created

The total number of Reservations created for Tasks in the TaskQueue.

reservations_rejected

The total number of Reservations rejected for Tasks in the TaskQueue.

reservations_rescinded

The total number of Reservations rescinded.

reservations_timed_out

The total number of Reservations that timed out for Tasks in the TaskQueue.

split_by_wait_time

A list of objects that describe the number of Tasks canceled and reservations accepted above and below the thresholds specified in seconds.

start_time

The beginning of the interval during which these statistics were calculated, in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

task_queue_sid

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

tasks_canceled

The total number of Tasks canceled in the TaskQueue.

tasks_completed

The total number of Tasks completed in the TaskQueue.

tasks_deleted

The total number of Tasks deleted in the TaskQueue.

tasks_entered

The total number of Tasks entered into the TaskQueue.

tasks_moved

The total number of Tasks that were moved from one queue to another.

url

The absolute URL of the TaskQueue statistics resource.

wait_duration_in_queue_until_accepted

The relative wait duration statistics (avg, min, max, total) for Tasks accepted while in the TaskQueue. Calculation is based on the time when the Tasks entered the TaskQueue.

wait_duration_until_accepted

The wait duration statistics (avg, min, max, total) for Tasks accepted while in the TaskQueue. Calculation is based on the time when the Tasks were created. For transfers, the wait duration is counted from the moment *the Task was created*, and not from when the transfer was initiated.

wait_duration_until_canceled

The wait duration statistics (avg, min, max, total) for Tasks canceled while in the TaskQueue.

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.