NAME
Google::Monitoring::Dashboard::V1::Metrics - Compiled Protocol Buffers messages for google/monitoring/dashboard/v1/metrics.proto
SYNOPSIS
use Google::Monitoring::Dashboard::V1::Metrics;
my $msg = Google::Monitoring::Dashboard::V1::Metrics::TimeSeriesQuery->new({
time_series_filter => $time_series_filter,
time_series_filter_ratio => $time_series_filter_ratio,
time_series_query_language => $time_series_query_language,
prometheus_query => $prometheus_query,
});
# Read or update a field
my $val = $msg->time_series_filter();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Monitoring::Dashboard::V1::Metrics::TimeSeriesQuery->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/monitoring/dashboard/v1/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::Monitoring::Dashboard::V1::Metrics::TimeSeriesQuery
TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API.
Inherits from Protobuf::Message.
Accessors
$msg->time_series_filter()/$msg->time_series_filter($value)Type:
Message(Google::Monitoring::Dashboard::V1::Metrics::TimeSeriesFilter)Filter parameters to fetch time series.
$msg->time_series_filter_ratio()/$msg->time_series_filter_ratio($value)Type:
Message(Google::Monitoring::Dashboard::V1::Metrics::TimeSeriesFilterRatio)Parameters to fetch a ratio between two time series filters.
$msg->time_series_query_language()/$msg->time_series_query_language($value)Type:
StringA query used to fetch time series with MQL.
$msg->prometheus_query()/$msg->prometheus_query($value)Type:
StringA query used to fetch time series with PromQL.
$msg->unit_override()/$msg->unit_override($value)Type:
StringThe unit of data contained in fetched time series. If non-empty, this unit will override any unit that accompanies fetched data. The format is the same as the [`unit`](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors) field in `MetricDescriptor`.
$msg->output_full_duration()/$msg->output_full_duration($value)Type:
BoolOptional. If set, Cloud Monitoring will treat the full query duration as the alignment period so that there will be only 1 output value.
*Note: This could override the configured alignment period except for the cases where a series of data points are expected, like - XyChart - Scorecard's spark chart
Google::Monitoring::Dashboard::V1::Metrics::TimeSeriesFilter
A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the [`ListTimeSeries`](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method.
Inherits from Protobuf::Message.
Accessors
$msg->filter()/$msg->filter($value)Type:
StringRequired. The [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
$msg->aggregation()/$msg->aggregation($value)Type:
Message(Google::Monitoring::Dashboard::V1::Common::Aggregation)By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
$msg->secondary_aggregation()/$msg->secondary_aggregation($value)Type:
Message(Google::Monitoring::Dashboard::V1::Common::Aggregation)Apply a second aggregation after `aggregation` is applied.
$msg->pick_time_series_filter()/$msg->pick_time_series_filter($value)Type:
Message(Google::Monitoring::Dashboard::V1::Common::PickTimeSeriesFilter)Ranking based time series filter.
$msg->statistical_time_series_filter()/$msg->statistical_time_series_filter($value)Type:
Message(Google::Monitoring::Dashboard::V1::Common::StatisticalTimeSeriesFilter)Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
Google::Monitoring::Dashboard::V1::Metrics::TimeSeriesFilterRatio
A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series.
Inherits from Protobuf::Message.
Accessors
$msg->numerator()/$msg->numerator($value)Type:
Message(Google::Monitoring::Dashboard::V1::Metrics::TimeSeriesFilterRatio::RatioPart)The numerator of the ratio.
$msg->denominator()/$msg->denominator($value)Type:
Message(Google::Monitoring::Dashboard::V1::Metrics::TimeSeriesFilterRatio::RatioPart)The denominator of the ratio.
$msg->secondary_aggregation()/$msg->secondary_aggregation($value)Type:
Message(Google::Monitoring::Dashboard::V1::Common::Aggregation)Apply a second aggregation after the ratio is computed.
$msg->pick_time_series_filter()/$msg->pick_time_series_filter($value)Type:
Message(Google::Monitoring::Dashboard::V1::Common::PickTimeSeriesFilter)Ranking based time series filter.
$msg->statistical_time_series_filter()/$msg->statistical_time_series_filter($value)Type:
Message(Google::Monitoring::Dashboard::V1::Common::StatisticalTimeSeriesFilter)Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
Google::Monitoring::Dashboard::V1::Metrics::Threshold
Defines a threshold for categorizing time series values.
Inherits from Protobuf::Message.
Accessors
$msg->label()/$msg->label($value)Type:
StringA label for the threshold.
$msg->value()/$msg->value($value)Type:
DoubleThe value of the threshold. The value should be defined in the native scale of the metric.
$msg->color()/$msg->color($value)Type:
Enum(Google::Monitoring::Dashboard::V1::Threshold::Color)The state color for this threshold. Color is not allowed in a XyChart.
$msg->direction()/$msg->direction($value)Type:
Enum(Google::Monitoring::Dashboard::V1::Threshold::Direction)The direction for the current threshold. Direction is not allowed in a XyChart.
$msg->target_axis()/$msg->target_axis($value)Type:
Enum(Google::Monitoring::Dashboard::V1::Threshold::TargetAxis)The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
Enum: Threshold::Color
COLOR_UNSPECIFIED=>0YELLOW=>4RED=>6
Enum: Threshold::Direction
DIRECTION_UNSPECIFIED=>0ABOVE=>1BELOW=>2
Enum: Threshold::TargetAxis
TARGET_AXIS_UNSPECIFIED=>0Y1=>1Y2=>2
SEE ALSO
Protobuf, Protobuf::Message, Google::Monitoring::Dashboard::V1::Metrics::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.