class Google::Apis::MonitoringV1::MetricsScope
Represents a Metrics Scope (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.
Attributes
Output only. The time when this Metrics Scope was created. Corresponds to the JSON property `createTime` @return [String]
Output only. The list of projects monitored by this Metrics Scope. Corresponds to the JSON property `monitoredProjects` @return [Array<Google::Apis::MonitoringV1::MonitoredProject>]
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` Corresponds to the JSON property `name` @return [String]
Output only. The time when this Metrics Scope record was last updated. Corresponds to the JSON property `updateTime` @return [String]
Public Class Methods
# File lib/google/apis/monitoring_v1/classes.rb, line 602 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/monitoring_v1/classes.rb, line 607 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @monitored_projects = args[:monitored_projects] if args.key?(:monitored_projects) @name = args[:name] if args.key?(:name) @update_time = args[:update_time] if args.key?(:update_time) end