Service Client: Google::Monitoring::Metricsscope::V1::MetricsScopes::MetricsScopesClient

Client stub representing the remote MetricsScopes gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to monitoring.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

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

SYNOPSIS

use Google::Monitoring::Metricsscope::V1::MetricsScopes;

my $msg = Google::Monitoring::Metricsscope::V1::MetricsScopes::GetMetricsScopeRequest->new({
    name => $name,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/monitoring/metricsscope/v1/metrics_scopes.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::MetricsScopes::GetMetricsScopeRequest

Request for the `GetMetricsScope` method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the `Metrics Scope`. Example: `locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}`

Google::Monitoring::Metricsscope::V1::MetricsScopes::ListMetricsScopesByMonitoredProjectRequest

Request for the `ListMetricsScopesByMonitoredProject` method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the `Monitored Project` being requested. Example: `projects/{MONITORED_PROJECT_ID_OR_NUMBER}`

Google::Monitoring::Metricsscope::V1::MetricsScopes::ListMetricsScopesByMonitoredProjectResponse

Response for the `ListMetricsScopesByMonitoredProject` method.

Inherits from Protobuf::Message.

Accessors

Google::Monitoring::Metricsscope::V1::MetricsScopes::CreateMonitoredProjectRequest

Request for the `CreateMonitoredProject` method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the existing `Metrics Scope` that will monitor this project. Example: `locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}`

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

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

    Required. The initial `MonitoredProject` configuration. Specify only the `monitored_project.name` field. All other fields are ignored. The `monitored_project.name` must be in the format: `locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}`

Google::Monitoring::Metricsscope::V1::MetricsScopes::DeleteMonitoredProjectRequest

Request for the `DeleteMonitoredProject` method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the `MonitoredProject`. Example: `locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}`

    Authorization requires the following [Google IAM](https://cloud.google.com/iam) permissions on both the `Metrics Scope` and on the `MonitoredProject`: `monitoring.metricsScopes.link`

Google::Monitoring::Metricsscope::V1::MetricsScopes::OperationMetadata

Contains metadata for longrunning operation for the edit Metrics Scope endpoints.

Inherits from Protobuf::Message.

Accessors

Enum: OperationMetadata::State

  • STATE_UNSPECIFIED => 0

  • CREATED => 1

  • RUNNING => 2

  • DONE => 3

  • CANCELLED => 4

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.