Class: Google::Apis::MonitoringV1::ChartOptions
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV1::ChartOptions
- 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
Options to control visual rendering of a chart.
Instance Attribute Summary collapse
-
#display_horizontal ⇒ Boolean
(also: #display_horizontal?)
Preview: Configures whether the charted values are shown on the horizontal or vertical axis.
-
#mode ⇒ String
The chart mode.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ChartOptions
constructor
A new instance of ChartOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ChartOptions
Returns a new instance of ChartOptions.
260 261 262 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 260 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_horizontal ⇒ Boolean Also known as: display_horizontal?
Preview: Configures whether the charted values are shown on the horizontal or
vertical axis. By default, values are represented the vertical axis. This is a
preview feature and may be subject to change before final release.
Corresponds to the JSON property displayHorizontal
252 253 254 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 252 def display_horizontal @display_horizontal end |
#mode ⇒ String
The chart mode.
Corresponds to the JSON property mode
258 259 260 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 258 def mode @mode end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
265 266 267 268 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 265 def update!(**args) @display_horizontal = args[:display_horizontal] if args.key?(:display_horizontal) @mode = args[:mode] if args.key?(:mode) end |