Class: Google::Apis::DiscoveryengineV1::GoogleApiMetric
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1::GoogleApiMetric
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/representations.rb
Overview
A specific metric, identified by specifying values for all of the labels of a
MetricDescriptor
.
Instance Attribute Summary collapse
-
#labels ⇒ Hash<String,String>
The set of label values that uniquely identify this metric.
-
#type ⇒ String
An existing metric type, see google.api.MetricDescriptor.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleApiMetric
constructor
A new instance of GoogleApiMetric.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleApiMetric
Returns a new instance of GoogleApiMetric.
404 405 406 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 404 def initialize(**args) update!(**args) end |
Instance Attribute Details
#labels ⇒ Hash<String,String>
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
396 397 398 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 396 def labels @labels end |
#type ⇒ String
An existing metric type, see google.api.MetricDescriptor. For example, custom.
googleapis.com/invoice/paid/amount
.
Corresponds to the JSON property type
402 403 404 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 402 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
409 410 411 412 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 409 def update!(**args) @labels = args[:labels] if args.key?(:labels) @type = args[:type] if args.key?(:type) end |