NAME

Google::Monitoring::Dashboard::V1::DashboardFilter - Compiled Protocol Buffers messages for google/monitoring/dashboard/v1/dashboard_filter.proto

SYNOPSIS

use Google::Monitoring::Dashboard::V1::DashboardFilter;

my $msg = Google::Monitoring::Dashboard::V1::DashboardFilter::DashboardFilter->new({
    label_key => $label_key,
    template_variable => $template_variable,
    string_value => $string_value,
    filter_type => $filter_type,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Monitoring::Dashboard::V1::DashboardFilter::DashboardFilter->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/monitoring/dashboard/v1/dashboard_filter.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::DashboardFilter::DashboardFilter

A filter to reduce the amount of data charted in relevant widgets.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The key for the label

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

    Type: String

    The placeholder text that can be referenced in a filter string or MQL query. If omitted, the dashboard filter will be applied to all relevant widgets in the dashboard.

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

    Type: String

    A variable-length string value.

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

    Type: Enum (Google::Monitoring::Dashboard::V1::DashboardFilter::FilterType)

    The specified filter type

Enum: DashboardFilter::FilterType

  • FILTER_TYPE_UNSPECIFIED => 0

  • RESOURCE_LABEL => 1

  • METRIC_LABEL => 2

  • USER_METADATA_LABEL => 3

  • SYSTEM_METADATA_LABEL => 4

  • GROUP => 5

SEE ALSO

Protobuf, Protobuf::Message, Google::Monitoring::Dashboard::V1::DashboardFilter::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.