Class: Google::Apis::MonitoringV1::Tile

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 single tile in the mosaic. The placement and size of the tile are configurable.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Tile

Returns a new instance of Tile.



1573
1574
1575
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1573

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

Instance Attribute Details

#heightFixnum

The height of the tile, measured in grid blocks. Tiles must have a minimum height of 1. Corresponds to the JSON property height

Returns:

  • (Fixnum)


1546
1547
1548
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1546

def height
  @height
end

#widgetGoogle::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



1552
1553
1554
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1552

def widget
  @widget
end

#widthFixnum

The width of the tile, measured in grid blocks. Tiles must have a minimum width of 1. Corresponds to the JSON property width

Returns:

  • (Fixnum)


1558
1559
1560
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1558

def width
  @width
end

#x_posFixnum

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

Returns:

  • (Fixnum)


1565
1566
1567
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1565

def x_pos
  @x_pos
end

#y_posFixnum

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

Returns:

  • (Fixnum)


1571
1572
1573
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1571

def y_pos
  @y_pos
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1578
1579
1580
1581
1582
1583
1584
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1578

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