Class: Google::Apis::MonitoringV1::Tile
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV1::Tile
- 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 single tile in the mosaic. The placement and size of the tile are configurable.
Instance Attribute Summary collapse
-
#height ⇒ Fixnum
The height of the tile, measured in grid blocks.
-
#widget ⇒ Google::Apis::MonitoringV1::Widget
Widget contains a single dashboard component and configuration of how to present the component in the dashboard.
-
#width ⇒ Fixnum
The width of the tile, measured in grid blocks.
-
#x_pos ⇒ Fixnum
The zero-indexed position of the tile in grid blocks relative to the left edge of the grid.
-
#y_pos ⇒ Fixnum
The zero-indexed position of the tile in grid blocks relative to the top edge of the grid.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Tile
constructor
A new instance of Tile.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Tile
Returns a new instance of Tile.
2151 2152 2153 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2151 def initialize(**args) update!(**args) end |
Instance Attribute Details
#height ⇒ Fixnum
The height of the tile, measured in grid blocks. Tiles must have a minimum
height of 1.
Corresponds to the JSON property height
2124 2125 2126 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2124 def height @height end |
#widget ⇒ Google::Apis::MonitoringV1::Widget
Widget contains a single dashboard component and configuration of how to
present the component in the dashboard.
Corresponds to the JSON property widget
2130 2131 2132 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2130 def @widget end |
#width ⇒ Fixnum
The width of the tile, measured in grid blocks. Tiles must have a minimum
width of 1.
Corresponds to the JSON property width
2136 2137 2138 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2136 def width @width end |
#x_pos ⇒ Fixnum
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.
Corresponds to the JSON property xPos
2143 2144 2145 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2143 def x_pos @x_pos end |
#y_pos ⇒ Fixnum
The zero-indexed position of the tile in grid blocks relative to the top edge
of the grid. y_pos cannot be negative.
Corresponds to the JSON property yPos
2149 2150 2151 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2149 def y_pos @y_pos end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2156 2157 2158 2159 2160 2161 2162 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2156 def update!(**args) @height = args[:height] if args.key?(:height) @widget = args[:widget] if args.key?(:widget) @width = args[:width] if args.key?(:width) @x_pos = args[:x_pos] if args.key?(:x_pos) @y_pos = args[:y_pos] if args.key?(:y_pos) end |