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:
StringOrigin (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:
StringWorker-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:
StringMetric 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:
BoolTrue 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:
StringA project id.
$msg->job_id()/$msg->job_id($value)Type:
StringThe 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:
StringThe [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
$msg->metric_time()/$msg->metric_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Timestamp as of which metric values are current.
$msg->metrics()/$msg->metrics($value)Type:
Message(Google::Dataflow::V1beta3::Metrics::MetricUpdate)All metrics for this job.
Google::Dataflow::V1beta3::Metrics::GetJobExecutionDetailsRequest
Request to get job execution details.
Inherits from Protobuf::Message.
Accessors
$msg->project_id()/$msg->project_id($value)Type:
StringA project id.
$msg->job_id()/$msg->job_id($value)Type:
StringThe job to get execution details for.
$msg->location()/$msg->location($value)Type:
StringThe [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:
Int32If 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:
StringIf 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:
DoubleThe 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
$msg->start_time()/$msg->start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time when the work item attempt became a straggler.
$msg->causes()/$msg->causes($value)Type:
Message(Google::Dataflow::V1beta3::Metrics::StragglerInfo::CausesEntry)The straggler causes, keyed by the string representation of the StragglerCause enum and contains specialized debugging information for each straggler cause.
Google::Dataflow::V1beta3::Metrics::StreamingStragglerInfo
Information useful for streaming straggler identification and debugging.
Inherits from Protobuf::Message.
Accessors
$msg->start_time()/$msg->start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Start time of this straggler.
$msg->end_time()/$msg->end_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)End time of this straggler.
$msg->worker_name()/$msg->worker_name($value)Type:
StringName of the worker where the straggler was detected.
$msg->data_watermark_lag()/$msg->data_watermark_lag($value)Type:
Message(Google::Protobuf::Duration::Duration)The event-time watermark lag at the time of the straggler detection.
$msg->system_watermark_lag()/$msg->system_watermark_lag($value)Type:
Message(Google::Protobuf::Duration::Duration)The system watermark lag at the time of the straggler detection.
Google::Dataflow::V1beta3::Metrics::Straggler
Information for a straggler.
Inherits from Protobuf::Message.
Accessors
$msg->batch_straggler()/$msg->batch_straggler($value)Type:
Message(Google::Dataflow::V1beta3::Metrics::StragglerInfo)Batch straggler identification and debugging information.
$msg->streaming_straggler()/$msg->streaming_straggler($value)Type:
Message(Google::Dataflow::V1beta3::Metrics::StreamingStragglerInfo)Streaming straggler identification and debugging information.
Google::Dataflow::V1beta3::Metrics::HotKeyDebuggingInfo
Information useful for debugging a hot key detection.
Inherits from Protobuf::Message.
Accessors
$msg->detected_hot_keys()/$msg->detected_hot_keys($value)Type:
Message(Google::Dataflow::V1beta3::Metrics::HotKeyDebuggingInfo::DetectedHotKeysEntry)Debugging information for each detected hot key. Keyed by a hash of the key.
Google::Dataflow::V1beta3::Metrics::StragglerSummary
Summarized straggler identification details.
Inherits from Protobuf::Message.
Accessors
$msg->total_straggler_count()/$msg->total_straggler_count($value)Type:
Int64The total count of stragglers.
$msg->straggler_cause_count()/$msg->straggler_cause_count($value)Type:
Message(Google::Dataflow::V1beta3::Metrics::StragglerSummary::StragglerCauseCountEntry)Aggregated counts of straggler causes, keyed by the string representation of the StragglerCause enum.
$msg->recent_stragglers()/$msg->recent_stragglers($value)Type:
Message(Google::Dataflow::V1beta3::Metrics::Straggler)The most recent stragglers.
Google::Dataflow::V1beta3::Metrics::StageSummary
Information about a particular execution stage of a job.
Inherits from Protobuf::Message.
Accessors
$msg->stage_id()/$msg->stage_id($value)Type:
StringID of this stage
$msg->state()/$msg->state($value)Type:
Enum(Google::Dataflow::V1beta3::ExecutionState)State of this stage.
$msg->start_time()/$msg->start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Start time of this stage.
$msg->end_time()/$msg->end_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)End time of this stage.
If the work item is completed, this is the actual end time of the stage. Otherwise, it is the predicted end time.
$msg->progress()/$msg->progress($value)Type:
Message(Google::Dataflow::V1beta3::Metrics::ProgressTimeseries)Progress for this stage. Only applicable to Batch jobs.
$msg->metrics()/$msg->metrics($value)Type:
Message(Google::Dataflow::V1beta3::Metrics::MetricUpdate)Metrics for this stage.
$msg->straggler_summary()/$msg->straggler_summary($value)Type:
Message(Google::Dataflow::V1beta3::Metrics::StragglerSummary)Straggler summary for this stage.
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:
StringIf 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:
StringA project id.
$msg->job_id()/$msg->job_id($value)Type:
StringThe job to get execution details for.
$msg->location()/$msg->location($value)Type:
StringThe [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:
StringThe stage for which to fetch information.
$msg->page_size()/$msg->page_size($value)Type:
Int32If 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:
StringIf 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
$msg->task_id()/$msg->task_id($value)Type:
StringName of this work item.
$msg->attempt_id()/$msg->attempt_id($value)Type:
StringAttempt ID of this work item
$msg->start_time()/$msg->start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Start time of this work item attempt.
$msg->end_time()/$msg->end_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)End time of this work item attempt.
If the work item is completed, this is the actual end time of the work item. Otherwise, it is the predicted end time.
$msg->state()/$msg->state($value)Type:
Enum(Google::Dataflow::V1beta3::ExecutionState)State of this work item.
$msg->progress()/$msg->progress($value)Type:
Message(Google::Dataflow::V1beta3::Metrics::ProgressTimeseries)Progress of this work item.
$msg->metrics()/$msg->metrics($value)Type:
Message(Google::Dataflow::V1beta3::Metrics::MetricUpdate)Metrics for this work item.
$msg->straggler_info()/$msg->straggler_info($value)Type:
Message(Google::Dataflow::V1beta3::Metrics::StragglerInfo)Information about straggler detections for this work item.
Google::Dataflow::V1beta3::Metrics::WorkerDetails
Information about a worker
Inherits from Protobuf::Message.
Accessors
$msg->worker_name()/$msg->worker_name($value)Type:
StringName of this worker
$msg->work_items()/$msg->work_items($value)Type:
Message(Google::Dataflow::V1beta3::Metrics::WorkItemDetails)Work items processed by this worker, sorted by time.
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:
StringIf 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.