Class: Google::Apis::MonitoringV1::GaugeView
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV1::GaugeView
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/monitoring_v1/classes.rb,
lib/google/apis/monitoring_v1/representations.rb,
lib/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
-
#lower_bound ⇒ Float
The lower bound for this gauge chart.
-
#upper_bound ⇒ Float
The upper bound for this gauge chart.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GaugeView
constructor
A new instance of GaugeView.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GaugeView
766 767 768 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 766 def initialize(**args) update!(**args) end |
Instance Attribute Details
#lower_bound ⇒ Float
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
758 759 760 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 758 def lower_bound @lower_bound end |
#upper_bound ⇒ Float
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
764 765 766 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 764 def upper_bound @upper_bound end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
771 772 773 774 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 771 def update!(**args) @lower_bound = args[:lower_bound] if args.key?(:lower_bound) @upper_bound = args[:upper_bound] if args.key?(:upper_bound) end |