Class: Google::Apis::MonitoringV1::Column
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV1::Column
- 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 column.
Instance Attribute Summary collapse
-
#weight ⇒ Fixnum
The relative weight of this column.
-
#widgets ⇒ Array<Google::Apis::MonitoringV1::Widget>
The display widgets arranged vertically in this column.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Column
constructor
A new instance of Column.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Column
Returns a new instance of Column.
221 222 223 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 221 def initialize(**args) update!(**args) end |
Instance Attribute Details
#weight ⇒ Fixnum
The relative weight of this column. The column weight is used to adjust the
width of columns on the screen (relative to peers). Greater the weight,
greater the width of the column on the screen. If omitted, a value of 1 is
used while rendering.
Corresponds to the JSON property weight
214 215 216 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 214 def weight @weight end |
#widgets ⇒ Array<Google::Apis::MonitoringV1::Widget>
The display widgets arranged vertically in this column.
Corresponds to the JSON property widgets
219 220 221 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 219 def @widgets end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
226 227 228 229 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 226 def update!(**args) @weight = args[:weight] if args.key?(:weight) @widgets = args[:widgets] if args.key?(:widgets) end |