Service Client: Google::Dataflow::V1beta3::Metrics::MetricsV1Beta3Client

Client stub representing the remote MetricsV1Beta3 gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to dataflow.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Dataflow::V1beta3::Metrics - Compiled Protocol Buffers messages for google/dataflow/v1beta3/metrics.proto

SYNOPSIS

use Google::Dataflow::V1beta3::Metrics;

my $msg = Google::Dataflow::V1beta3::Metrics::MetricStructuredName->new({
    origin => $origin,
    name => $name,
    context => $context,
});

# Read or update a field
my $val = $msg->origin();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Dataflow::V1beta3::Metrics::MetricStructuredName->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/dataflow/v1beta3/metrics.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Dataflow::V1beta3::Metrics::MetricStructuredName

Identifies a metric, by describing the source which generated the metric.

Inherits from Protobuf::Message.

Accessors

  • $msg->origin() / $msg->origin($value)

    Type: String

    Origin (namespace) of metric name. May be blank for user-define metrics; will be "dataflow" for metrics defined by the Dataflow service or SDK.

  • $msg->name() / $msg->name($value)

    Type: String

    Worker-defined metric name.

  • $msg->context() / $msg->context($value)

    Type: Message (Google::Dataflow::V1beta3::Metrics::MetricStructuredName::ContextEntry)

    Zero or more labeled fields which identify the part of the job this metric is associated with, such as the name of a step or collection.

    For example, built-in counters associated with steps will have context['step'] = <step-name>. Counters associated with PCollections in the SDK will have context['pcollection'] = <pcollection-name>.

Google::Dataflow::V1beta3::Metrics::MetricUpdate

Describes the state of a metric.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: Message (Google::Dataflow::V1beta3::Metrics::MetricStructuredName)

    Name of the metric.

  • $msg->kind() / $msg->kind($value)

    Type: String

    Metric aggregation kind. The possible metric aggregation kinds are "Sum", "Max", "Min", "Mean", "Set", "And", "Or", and "Distribution". The specified aggregation kind is case-insensitive.

    If omitted, this is not an aggregated value but instead a single metric sample value.

  • $msg->cumulative() / $msg->cumulative($value)

    Type: Bool

    True if this metric is reported as the total cumulative aggregate value accumulated since the worker started working on this WorkItem. By default this is false, indicating that this metric is reported as a delta that is not associated with any WorkItem.

  • $msg->scalar() / $msg->scalar($value)

    Type: Message (Google::Protobuf::Struct::Value)

    Worker-computed aggregate value for aggregation kinds "Sum", "Max", "Min", "And", and "Or". The possible value types are Long, Double, and Boolean.

  • $msg->mean_sum() / $msg->mean_sum($value)

    Type: Message (Google::Protobuf::Struct::Value)

    Worker-computed aggregate value for the "Mean" aggregation kind. This holds the sum of the aggregated values and is used in combination with mean_count below to obtain the actual mean aggregate value. The only possible value types are Long and Double.

  • $msg->mean_count() / $msg->mean_count($value)

    Type: Message (Google::Protobuf::Struct::Value)

    Worker-computed aggregate value for the "Mean" aggregation kind. This holds the count of the aggregated values and is used in combination with mean_sum above to obtain the actual mean aggregate value. The only possible value type is Long.

  • $msg->set() / $msg->set($value)

    Type: Message (Google::Protobuf::Struct::Value)

    Worker-computed aggregate value for the "Set" aggregation kind. The only possible value type is a list of Values whose type can be Long, Double, String, or BoundedTrie according to the metric's type. All Values in the list must be of the same type.

  • $msg->trie() / $msg->trie($value)

    Type: Message (Google::Protobuf::Struct::Value)

    Worker-computed aggregate value for the "Trie" aggregation kind. The only possible value type is a BoundedTrieNode.

  • $msg->bounded_trie() / $msg->bounded_trie($value)

    Type: Message (Google::Protobuf::Struct::Value)

    Worker-computed aggregate value for the "Trie" aggregation kind. The only possible value type is a BoundedTrieNode. Introduced this field to avoid breaking older SDKs when Dataflow service starts to populate the `bounded_trie` field.

  • $msg->distribution() / $msg->distribution($value)

    Type: Message (Google::Protobuf::Struct::Value)

    A struct value describing properties of a distribution of numeric values.

  • $msg->gauge() / $msg->gauge($value)

    Type: Message (Google::Protobuf::Struct::Value)

    A struct value describing properties of a Gauge. Metrics of gauge type show the value of a metric across time, and is aggregated based on the newest value.

  • $msg->internal() / $msg->internal($value)

    Type: Message (Google::Protobuf::Struct::Value)

    Worker-computed aggregate value for internal use by the Dataflow service.

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Timestamp associated with the metric value. Optional when workers are reporting work progress; it will be filled in responses from the metrics API.

Google::Dataflow::V1beta3::Metrics::GetJobMetricsRequest

Request to get job metrics.

Inherits from Protobuf::Message.

Accessors

  • $msg->project_id() / $msg->project_id($value)

    Type: String

    A project id.

  • $msg->job_id() / $msg->job_id($value)

    Type: String

    The job to get metrics for.

  • $msg->start_time() / $msg->start_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Return only metric data that has changed since this time. Default is to return all information about all metrics for the job.

  • $msg->location() / $msg->location($value)

    Type: String

    The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the job specified by job_id.

Google::Dataflow::V1beta3::Metrics::JobMetrics

JobMetrics contains a collection of metrics describing the detailed progress of a Dataflow job. Metrics correspond to user-defined and system-defined metrics in the job. For more information, see [Dataflow job metrics] (https://cloud.google.com/dataflow/docs/guides/using-monitoring-intf).

This resource captures only the most recent values of each metric; time-series data can be queried for them (under the same metric names) from Cloud Monitoring.

Inherits from Protobuf::Message.

Accessors

Google::Dataflow::V1beta3::Metrics::GetJobExecutionDetailsRequest

Request to get job execution details.

Inherits from Protobuf::Message.

Accessors

  • $msg->project_id() / $msg->project_id($value)

    Type: String

    A project id.

  • $msg->job_id() / $msg->job_id($value)

    Type: String

    The job to get execution details for.

  • $msg->location() / $msg->location($value)

    Type: String

    The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the job specified by job_id.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    If specified, determines the maximum number of stages to return. If unspecified, the service may choose an appropriate default, or may return an arbitrarily large number of results.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    If supplied, this should be the value of next_page_token returned by an earlier call. This will cause the next page of results to be returned.

Google::Dataflow::V1beta3::Metrics::ProgressTimeseries

Information about the progress of some component of job execution.

Inherits from Protobuf::Message.

Accessors

  • $msg->current_progress() / $msg->current_progress($value)

    Type: Double

    The current progress of the component, in the range [0,1].

  • $msg->data_points() / $msg->data_points($value)

    Type: Message (Google::Dataflow::V1beta3::Metrics::ProgressTimeseries::Point)

    History of progress for the component.

    Points are sorted by time.

Google::Dataflow::V1beta3::Metrics::StragglerInfo

Information useful for straggler identification and debugging.

Inherits from Protobuf::Message.

Accessors

Google::Dataflow::V1beta3::Metrics::StreamingStragglerInfo

Information useful for streaming straggler identification and debugging.

Inherits from Protobuf::Message.

Accessors

Google::Dataflow::V1beta3::Metrics::Straggler

Information for a straggler.

Inherits from Protobuf::Message.

Accessors

Google::Dataflow::V1beta3::Metrics::HotKeyDebuggingInfo

Information useful for debugging a hot key detection.

Inherits from Protobuf::Message.

Accessors

Google::Dataflow::V1beta3::Metrics::StragglerSummary

Summarized straggler identification details.

Inherits from Protobuf::Message.

Accessors

Google::Dataflow::V1beta3::Metrics::StageSummary

Information about a particular execution stage of a job.

Inherits from Protobuf::Message.

Accessors

Google::Dataflow::V1beta3::Metrics::JobExecutionDetails

Information about the execution of a job.

Inherits from Protobuf::Message.

Accessors

  • $msg->stages() / $msg->stages($value)

    Type: Message (Google::Dataflow::V1beta3::Metrics::StageSummary)

    The stages of the job execution.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    If present, this response does not contain all requested tasks. To obtain the next page of results, repeat the request with page_token set to this value.

Google::Dataflow::V1beta3::Metrics::GetStageExecutionDetailsRequest

Request to get information about a particular execution stage of a job. Currently only tracked for Batch jobs.

Inherits from Protobuf::Message.

Accessors

  • $msg->project_id() / $msg->project_id($value)

    Type: String

    A project id.

  • $msg->job_id() / $msg->job_id($value)

    Type: String

    The job to get execution details for.

  • $msg->location() / $msg->location($value)

    Type: String

    The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the job specified by job_id.

  • $msg->stage_id() / $msg->stage_id($value)

    Type: String

    The stage for which to fetch information.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    If specified, determines the maximum number of work items to return. If unspecified, the service may choose an appropriate default, or may return an arbitrarily large number of results.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    If supplied, this should be the value of next_page_token returned by an earlier call. This will cause the next page of results to be returned.

  • $msg->start_time() / $msg->start_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Lower time bound of work items to include, by start time.

  • $msg->end_time() / $msg->end_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Upper time bound of work items to include, by start time.

Google::Dataflow::V1beta3::Metrics::WorkItemDetails

Information about an individual work item execution.

Inherits from Protobuf::Message.

Accessors

Google::Dataflow::V1beta3::Metrics::WorkerDetails

Information about a worker

Inherits from Protobuf::Message.

Accessors

Google::Dataflow::V1beta3::Metrics::StageExecutionDetails

Information about the workers and work items within a stage.

Inherits from Protobuf::Message.

Accessors

  • $msg->workers() / $msg->workers($value)

    Type: Message (Google::Dataflow::V1beta3::Metrics::WorkerDetails)

    Workers that have done work on the stage.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    If present, this response does not contain all requested tasks. To obtain the next page of results, repeat the request with page_token set to this value.

SEE ALSO

Protobuf, Protobuf::Message, Google::Dataflow::V1beta3::Metrics::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.