Class: Google::Apis::ClouduseraccountsVmAlpha::LogConfigCounterOptions
- Inherits:
-
Object
- Object
- Google::Apis::ClouduseraccountsVmAlpha::LogConfigCounterOptions
- Defined in:
- generated/google/apis/clouduseraccounts_vm_alpha/classes.rb,
generated/google/apis/clouduseraccounts_vm_alpha/representations.rb,
generated/google/apis/clouduseraccounts_vm_alpha/representations.rb
Overview
Options for counters
Instance Attribute Summary collapse
-
#field ⇒ String
The field value to attribute.
-
#metric ⇒ String
The metric to update.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LogConfigCounterOptions
constructor
A new instance of LogConfigCounterOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ LogConfigCounterOptions
Returns a new instance of LogConfigCounterOptions
498 499 500 |
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 498 def initialize(**args) update!(**args) end |
Instance Attribute Details
#field ⇒ String
The field value to attribute.
Corresponds to the JSON property field
491 492 493 |
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 491 def field @field end |
#metric ⇒ String
The metric to update.
Corresponds to the JSON property metric
496 497 498 |
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 496 def metric @metric end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
503 504 505 506 |
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 503 def update!(**args) @field = args[:field] if args.key?(:field) @metric = args[:metric] if args.key?(:metric) end |