NAME
Twilio::Rest::Taskrouter::V1::Workspace::Worker::WorkersRealTimeStatistics - The WorkersRealTimeStatistics resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $workers_real_time_statistics = $client->taskrouter->v1->workspaces($workspace_sid)->workers($sid)->real_time_statistics->fetch;
DESCRIPTION
This file holds WorkersRealTimeStatisticsContext and WorkersRealTimeStatisticsInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
WorkersRealTimeStatisticsContext
Returned by $client->taskrouter->v1->workspaces($workspace_sid)->workers($sid)->real_time_statistics. It makes no request until one of these methods is called.
fetch
my $workers_real_time_statistics = $client->taskrouter->v1->workspaces($workspace_sid)->workers($sid)->real_time_statistics->fetch(\%options);
Returns a WorkersRealTimeStatisticsInstance.
The options are:
task_channel-
Only calculate real-time statistics on this TaskChannel. Can be the TaskChannel's SID or its
unique_name, such asvoice,sms, ordefault.
WorkersRealTimeStatisticsInstance
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_statistics
-
The number of current Workers by Activity.
- total_workers
-
The total number of Workers.
- 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.