Class: Google::Apis::MonitoringV1::MosaicLayout
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV1::MosaicLayout
- 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 mosaic layout divides the available space into a grid of blocks, and overlays the grid with tiles. Unlike GridLayout, tiles may span multiple grid blocks and can be placed at arbitrary locations in the grid.
Instance Attribute Summary collapse
-
#columns ⇒ Fixnum
The number of columns in the mosaic grid.
-
#tiles ⇒ Array<Google::Apis::MonitoringV1::Tile>
The tiles to display.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MosaicLayout
constructor
A new instance of MosaicLayout.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MosaicLayout
Returns a new instance of MosaicLayout.
544 545 546 |
# File 'generated/google/apis/monitoring_v1/classes.rb', line 544 def initialize(**args) update!(**args) end |
Instance Attribute Details
#columns ⇒ Fixnum
The number of columns in the mosaic grid. The number of columns must be
between 1 and 12, inclusive.
Corresponds to the JSON property columns
537 538 539 |
# File 'generated/google/apis/monitoring_v1/classes.rb', line 537 def columns @columns end |
#tiles ⇒ Array<Google::Apis::MonitoringV1::Tile>
The tiles to display.
Corresponds to the JSON property tiles
542 543 544 |
# File 'generated/google/apis/monitoring_v1/classes.rb', line 542 def tiles @tiles end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
549 550 551 552 |
# File 'generated/google/apis/monitoring_v1/classes.rb', line 549 def update!(**args) @columns = args[:columns] if args.key?(:columns) @tiles = args[:tiles] if args.key?(:tiles) end |