class Google::Apis::MonitoringV3::Metric
A specific metric, identified by specifying values for all of the labels of a MetricDescriptor
.
Attributes
labels[RW]
The set of label values that uniquely identify this metric. All labels listed in the MetricDescriptor
must be assigned values. Corresponds to the JSON property `labels` @return [Hash<String,String>]
type[RW]
An existing metric type, see google.api.MetricDescriptor. For example, custom. googleapis.com/invoice/paid/amount. Corresponds to the JSON property `type` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/monitoring_v3/classes.rb, line 2516 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/monitoring_v3/classes.rb, line 2521 def update!(**args) @labels = args[:labels] if args.key?(:labels) @type = args[:type] if args.key?(:type) end