NAME
Twilio::Rest::Taskrouter::V1::Workspace::Worker::WorkersCumulativeStatistics - The WorkersCumulativeStatistics resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $workers_cumulative_statistics = $client->taskrouter->v1->workspaces($workspace_sid)->workers($sid)->cumulative_statistics->fetch;
DESCRIPTION
This file holds WorkersCumulativeStatisticsContext and WorkersCumulativeStatisticsInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
WorkersCumulativeStatisticsContext
Returned by $client->taskrouter->v1->workspaces($workspace_sid)->workers($sid)->cumulative_statistics. It makes no request until one of these methods is called.
fetch
my $workers_cumulative_statistics = $client->taskrouter->v1->workspaces($workspace_sid)->workers($sid)->cumulative_statistics->fetch(\%options);
Returns a WorkersCumulativeStatisticsInstance.
The options are:
end_date-
Only calculate statistics from this date and time and earlier, specified in ISO 8601 format. 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 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends.
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 cumulative statistics on this TaskChannel. Can be the TaskChannel's SID or its
unique_name, such asvoice,sms, ordefault.
WorkersCumulativeStatisticsInstance
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 Worker resource.
- activity_durations
-
The minimum, average, maximum, and total time (in seconds) that Workers spent in each Activity.
- 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 that were accepted.
- reservations_canceled
-
The total number of Reservations that were canceled.
- reservations_created
-
The total number of Reservations that were created.
- reservations_rejected
-
The total number of Reservations that were rejected.
- reservations_rescinded
-
The total number of Reservations that were rescinded.
- reservations_timed_out
-
The total number of Reservations that were timed out.
- 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.
- url
-
The absolute URL of the Workers statistics resource.
- workspace_sid
-
The SID of the Workspace that contains the Workers.
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.