Class: Google::Apis::MonitoringV1::MosaicLayout

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MosaicLayout

Returns a new instance of MosaicLayout.



1272
1273
1274
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1272

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

Instance Attribute Details

#columnsFixnum

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

Returns:

  • (Fixnum)


1265
1266
1267
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1265

def columns
  @columns
end

#tilesArray<Google::Apis::MonitoringV1::Tile>

The tiles to display. Corresponds to the JSON property tiles



1270
1271
1272
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1270

def tiles
  @tiles
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1277
1278
1279
1280
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1277

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