Class: Google::Cloud::Monitoring::Dashboard::V1::MosaicLayout
- Inherits:
-
Object
- Object
- Google::Cloud::Monitoring::Dashboard::V1::MosaicLayout
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/monitoring/dashboard/v1/layouts.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.
Defined Under Namespace
Classes: Tile
Instance Attribute Summary collapse
-
#columns ⇒ ::Integer
The number of columns in the mosaic grid.
-
#tiles ⇒ ::Array<::Google::Cloud::Monitoring::Dashboard::V1::MosaicLayout::Tile>
The tiles to display.
Instance Attribute Details
#columns ⇒ ::Integer
Returns The number of columns in the mosaic grid. The number of columns must be between 1 and 12, inclusive.
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'proto_docs/google/monitoring/dashboard/v1/layouts.rb', line 49 class MosaicLayout include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A single tile in the mosaic. The placement and size of the tile are # configurable. # @!attribute [rw] x_pos # @return [::Integer] # The zero-indexed position of the tile in grid blocks relative to the # left edge of the grid. Tiles must be contained within the specified # number of columns. `x_pos` cannot be negative. # @!attribute [rw] y_pos # @return [::Integer] # The zero-indexed position of the tile in grid blocks relative to the # top edge of the grid. `y_pos` cannot be negative. # @!attribute [rw] width # @return [::Integer] # The width of the tile, measured in grid blocks. Tiles must have a # minimum width of 1. # @!attribute [rw] height # @return [::Integer] # The height of the tile, measured in grid blocks. Tiles must have a # minimum height of 1. # @!attribute [rw] widget # @return [::Google::Cloud::Monitoring::Dashboard::V1::Widget] # The informational widget contained in the tile. For example an `XyChart`. class Tile include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#tiles ⇒ ::Array<::Google::Cloud::Monitoring::Dashboard::V1::MosaicLayout::Tile>
Returns The tiles to display.
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'proto_docs/google/monitoring/dashboard/v1/layouts.rb', line 49 class MosaicLayout include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A single tile in the mosaic. The placement and size of the tile are # configurable. # @!attribute [rw] x_pos # @return [::Integer] # The zero-indexed position of the tile in grid blocks relative to the # left edge of the grid. Tiles must be contained within the specified # number of columns. `x_pos` cannot be negative. # @!attribute [rw] y_pos # @return [::Integer] # The zero-indexed position of the tile in grid blocks relative to the # top edge of the grid. `y_pos` cannot be negative. # @!attribute [rw] width # @return [::Integer] # The width of the tile, measured in grid blocks. Tiles must have a # minimum width of 1. # @!attribute [rw] height # @return [::Integer] # The height of the tile, measured in grid blocks. Tiles must have a # minimum height of 1. # @!attribute [rw] widget # @return [::Google::Cloud::Monitoring::Dashboard::V1::Widget] # The informational widget contained in the tile. For example an `XyChart`. class Tile include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |