Class: Google::Apis::MonitoringV1::ChartOptions

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_horizontalBoolean 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

Returns:

  • (Boolean)


252
253
254
# File 'lib/google/apis/monitoring_v1/classes.rb', line 252

def display_horizontal
  @display_horizontal
end

#modeString

The chart mode. Corresponds to the JSON property mode

Returns:

  • (String)


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