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

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



489
490
491
# File 'generated/google/apis/monitoring_v1/classes.rb', line 489

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)


482
483
484
# File 'generated/google/apis/monitoring_v1/classes.rb', line 482

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



487
488
489
# File 'generated/google/apis/monitoring_v1/classes.rb', line 487

def widgets
  @widgets
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



494
495
496
497
# File 'generated/google/apis/monitoring_v1/classes.rb', line 494

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