Class: Google::Apis::CloudmonitoringV2beta2::TimeseriesDescriptorLabel

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudmonitoring_v2beta2/classes.rb,
generated/google/apis/cloudmonitoring_v2beta2/representations.rb,
generated/google/apis/cloudmonitoring_v2beta2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TimeseriesDescriptorLabel

Returns a new instance of TimeseriesDescriptorLabel.


593
594
595
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 593

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#keyString

The label's name. Corresponds to the JSON property key

Returns:

  • (String)

586
587
588
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 586

def key
  @key
end

#valueString

The label's value. Corresponds to the JSON property value

Returns:

  • (String)

591
592
593
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 591

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


598
599
600
601
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 598

def update!(**args)
  @key = args[:key] if args.key?(:key)
  @value = args[:value] if args.key?(:value)
end