Google-Cloud-Dataflow-V1beta3
view release on metacpan or search on metacpan
lib/Google/Dataflow/V1beta3/Metrics.pm view on Meta::CPAN
Type: Message (.google.dataflow.v1beta3.WorkItemDetails)
=back
=cut
# === Message: Google::Dataflow::V1beta3::Metrics::StageExecutionDetails ===
# Fields for StageExecutionDetails
# Field: workers Type: 11 (.google.dataflow.v1beta3.WorkerDetails)
# Field: next_page_token Type: 9 ()
=pod
=head1 NAME
Google::Dataflow::V1beta3::Metrics::StageExecutionDetails - Compiled Protocol Buffers message class
=head1 SYNOPSIS
use Google::Dataflow::V1beta3::Metrics;
my $msg = Google::Dataflow::V1beta3::Metrics::StageExecutionDetails->new(
workers => $value,
);
=head1 FIELDS
=over 4
=item * B<workers>
Type: Message (.google.dataflow.v1beta3.WorkerDetails)
=item * B<next_page_token>
Type: String
=back
=cut
# === Service Client: Google::Dataflow::V1beta3::Metrics::MetricsV1beta3Client ===
package Google::Dataflow::V1beta3::Metrics::MetricsV1beta3Client;
=pod
=head1 NAME
Google::Dataflow::V1beta3::Metrics::MetricsV1beta3Client - Client stub representing the remote MetricsV1Beta3 service
=head1 DESCRIPTION
This class acts as a local client stub for the remote gRPC service.
It delegates call dispatching to an underlying L<Google::gRPC::Client>
instance, ensuring type-safe request parsing and response mapping.
=head1 CONFIGURATION AND ENVIRONMENT
=head2 target
The endpoint target address. Defaults to C<dataflow.googleapis.com:443>.
=head2 credentials
The authentication credentials provider. Defaults to application default credentials via L<Google::Auth>.
=cut
use Moo;
use Google::Auth;
use Google::gRPC::Client;
has credentials => ( is => 'ro', default => sub { Google::Auth->default() } );
has target => ( is => 'ro', default => 'dataflow.googleapis.com:443' );
has _grpc_client => (
is => 'ro',
lazy => 1,
builder => sub {
my $self = shift;
return Google::gRPC::Client->new(
target => $self->target,
auth_token => $self->credentials->get_token(),
);
}
);
sub get_job_metrics {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Dataflow::V1beta3::Metrics::GetJobMetricsRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.dataflow.v1beta3.MetricsV1Beta3',
method => 'GetJobMetrics',
request => $req,
response_class => 'Google::Dataflow::V1beta3::Metrics::JobMetrics',
});
}
sub get_job_execution_details {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Dataflow::V1beta3::Metrics::GetJobExecutionDetailsRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.dataflow.v1beta3.MetricsV1Beta3',
method => 'GetJobExecutionDetails',
request => $req,
response_class => 'Google::Dataflow::V1beta3::Metrics::JobExecutionDetails',
});
}
sub get_stage_execution_details {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Dataflow::V1beta3::Metrics::GetStageExecutionDetailsRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.dataflow.v1beta3.MetricsV1Beta3',
method => 'GetStageExecutionDetails',
( run in 2.102 seconds using v1.01-cache-2.11-cpan-f03e8824b8d )