Reference documentation and code samples for the Cloud Monitoring Metrics Scopes V1 API class Google::Cloud::Monitoring::MetricsScope::V1::MetricsScope.
Represents a Metrics Scope in Cloud Monitoring, which specifies one or more Google projects and zero or more AWS accounts to monitor together.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
Returns
-
(::Google::Protobuf::Timestamp) — Output only. The time when this
Metrics Scope
was created.
#monitored_projects
def monitored_projects() -> ::Array<::Google::Cloud::Monitoring::MetricsScope::V1::MonitoredProject>
Returns
-
(::Array<::Google::Cloud::Monitoring::MetricsScope::V1::MonitoredProject>) — Output only. The list of projects monitored by this
Metrics Scope
.
#name
def name() -> ::String
Returns
-
(::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}
#name=
def name=(value) -> ::String
Parameter
-
value (::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}
Returns
-
(::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}
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
Returns
-
(::Google::Protobuf::Timestamp) — Output only. The time when this
Metrics Scope
record was last updated.