class Google::Apis::CloudmonitoringV2beta2::MetricDescriptor
A metricDescriptor defines the name, label keys, and data type of a particular metric.
Attributes
Description of this metric. Corresponds to the JSON property `description` @return [String]
Labels defined for this metric. Corresponds to the JSON property `labels` @return [Array<Google::Apis::CloudmonitoringV2beta2::MetricDescriptorLabelDescriptor>]
The name of this metric. Corresponds to the JSON property `name` @return [String]
The project ID to which the metric belongs. Corresponds to the JSON property `project` @return [String]
A type in a metric contains information about how the metric is collected and what its data points look like. Corresponds to the JSON property `typeDescriptor` @return [Google::Apis::CloudmonitoringV2beta2::MetricDescriptorTypeDescriptor]
Public Class Methods
# File generated/google/apis/cloudmonitoring_v2beta2/classes.rb, line 263 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/cloudmonitoring_v2beta2/classes.rb, line 268 def update!(**args) @description = args[:description] if args.key?(:description) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @project = args[:project] if args.key?(:project) @type_descriptor = args[:type_descriptor] if args.key?(:type_descriptor) end