Class: Google::Apis::MonitoringV1::GridLayout

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

A basic layout divides the available space into vertical columns of equal width and arranges a list of widgets using a row-first strategy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GridLayout

Returns a new instance of GridLayout.



919
920
921
# File 'lib/google/apis/monitoring_v1/classes.rb', line 919

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

Instance Attribute Details

#columnsFixnum

The number of columns into which the view's width is divided. If omitted or set to zero, a system default will be used while rendering. Corresponds to the JSON property columns

Returns:

  • (Fixnum)


912
913
914
# File 'lib/google/apis/monitoring_v1/classes.rb', line 912

def columns
  @columns
end

#widgetsArray<Google::Apis::MonitoringV1::Widget>

The informational elements that are arranged into the columns row-first. Corresponds to the JSON property widgets



917
918
919
# File 'lib/google/apis/monitoring_v1/classes.rb', line 917

def widgets
  @widgets
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



924
925
926
927
# File 'lib/google/apis/monitoring_v1/classes.rb', line 924

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