NAME
Twilio::Rest::Taskrouter::V1::Workspace::TaskQueue::TaskQueueStatistics - The TaskQueueStatistics resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $task_queue_statistics = $client->taskrouter->v1->workspaces($workspace_sid)->task_queues($task_queue_sid)->statistics->fetch;
DESCRIPTION
This file holds TaskQueueStatisticsContext and TaskQueueStatisticsInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
TaskQueueStatisticsContext
Returned by $client->taskrouter->v1->workspaces($workspace_sid)->task_queues($task_queue_sid)->statistics. It makes no request until one of these methods is called.
fetch
my $task_queue_statistics = $client->taskrouter->v1->workspaces($workspace_sid)->task_queues($task_queue_sid)->statistics->fetch(\%options);
Returns a TaskQueueStatisticsInstance.
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
epochmethod. 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.
start_date-
Only calculate statistics from this date and time and later, specified in ISO 8601 format. A string, or an object with an
epochmethod. See "iso8601_date_time" in Twilio::Serialize. task_channel-
Only calculate real-time and cumulative statistics for the specified TaskChannel. Can be the TaskChannel's SID or its
unique_name, such asvoice,sms, ordefault.
TaskQueueStatisticsInstance
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.
- cumulative
-
An object that contains the cumulative statistics for the TaskQueue.
- realtime
-
An object that contains the real-time statistics for the TaskQueue.
- task_queue_sid
-
The SID of the TaskQueue from which these statistics were calculated.
- 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.