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: String

    A query used to fetch time series with MQL.

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

    Type: String

    A query used to fetch time series with PromQL.

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

    Type: String

    The 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: Bool

    Optional. 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

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

Google::Monitoring::Dashboard::V1::Metrics::Threshold

Defines a threshold for categorizing time series values.

Inherits from Protobuf::Message.

Accessors

Enum: Threshold::Color

  • COLOR_UNSPECIFIED => 0

  • YELLOW => 4

  • RED => 6

Enum: Threshold::Direction

  • DIRECTION_UNSPECIFIED => 0

  • ABOVE => 1

  • BELOW => 2

Enum: Threshold::TargetAxis

  • TARGET_AXIS_UNSPECIFIED => 0

  • Y1 => 1

  • Y2 => 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.