Class: Google::Apis::MonitoringV1::Row

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

Defines the layout properties and content for a row.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Row

Returns a new instance of Row.



1168
1169
1170
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1168

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

Instance Attribute Details

#weightFixnum

The relative weight of this row. The row weight is used to adjust the height of rows on the screen (relative to peers). Greater the weight, greater the height of the row on the screen. If omitted, a value of 1 is used while rendering. Corresponds to the JSON property weight

Returns:

  • (Fixnum)


1161
1162
1163
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1161

def weight
  @weight
end

#widgetsArray<Google::Apis::MonitoringV1::Widget>

The display widgets arranged horizontally in this row. Corresponds to the JSON property widgets



1166
1167
1168
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1166

def widgets
  @widgets
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1173
1174
1175
1176
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1173

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