NAME

Google::Monitoring::Metricsscope::V1::MetricsScope - Compiled Protocol Buffers messages for google/monitoring/metricsscope/v1/metrics_scope.proto

SYNOPSIS

use Google::Monitoring::Metricsscope::V1::MetricsScope;

my $msg = Google::Monitoring::Metricsscope::V1::MetricsScope::MetricsScope->new({
    name => $name,
    create_time => $create_time,
    update_time => $update_time,
    monitored_projects => $monitored_projects,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/monitoring/metricsscope/v1/metrics_scope.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::Metricsscope::V1::MetricsScope::MetricsScope

Represents a [Metrics Scope](https://cloud.google.com/monitoring/settings#concept-scope) in Cloud Monitoring, which specifies one or more Google projects and zero or more AWS accounts to monitor together.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Immutable. The resource name of the Monitoring Metrics Scope. On input, the resource name can be specified with the scoping project ID or number. On output, the resource name is specified with the scoping project number. Example: `locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}`

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

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

    Output only. The time when this `Metrics Scope` was created.

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

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

    Output only. The time when this `Metrics Scope` record was last updated.

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

    Type: Message (Google::Monitoring::Metricsscope::V1::MetricsScope::MonitoredProject)

    Output only. The list of projects monitored by this `Metrics Scope`.

Google::Monitoring::Metricsscope::V1::MetricsScope::MonitoredProject

A [project being monitored](https://cloud.google.com/monitoring/settings/multiple-projects#create-multi) by a `Metrics Scope`.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Immutable. The resource name of the `MonitoredProject`. On input, the resource name includes the scoping project ID and monitored project ID. On output, it contains the equivalent project numbers. Example: `locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}`

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

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

    Output only. The time when this `MonitoredProject` was created.

SEE ALSO

Protobuf, Protobuf::Message, Google::Monitoring::Metricsscope::V1::MetricsScope::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.