Class: Google::Apis::MonitoringV1::GaugeView

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

Overview

A gauge chart shows where the current value sits within a pre-defined range. The upper and lower bounds should define the possible range of values for the scorecard's query (inclusive).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GaugeView

Returns a new instance of GaugeView.



462
463
464
# File 'generated/google/apis/monitoring_v1/classes.rb', line 462

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

Instance Attribute Details

#lower_boundFloat

The lower bound for this gauge chart. The value of the chart should always be greater than or equal to this. Corresponds to the JSON property lowerBound

Returns:

  • (Float)


454
455
456
# File 'generated/google/apis/monitoring_v1/classes.rb', line 454

def lower_bound
  @lower_bound
end

#upper_boundFloat

The upper bound for this gauge chart. The value of the chart should always be less than or equal to this. Corresponds to the JSON property upperBound

Returns:

  • (Float)


460
461
462
# File 'generated/google/apis/monitoring_v1/classes.rb', line 460

def upper_bound
  @upper_bound
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



467
468
469
470
# File 'generated/google/apis/monitoring_v1/classes.rb', line 467

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