Class: Google::Apis::MonitoringV1::Column

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/monitoring_v1/classes.rb,
generated/google/apis/monitoring_v1/representations.rb,
generated/google/apis/monitoring_v1/representations.rb

Overview

Defines the layout properties and content for a column.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Column

Returns a new instance of Column.



179
180
181
# File 'generated/google/apis/monitoring_v1/classes.rb', line 179

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

Instance Attribute Details

#weightFixnum

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

Returns:

  • (Fixnum)


172
173
174
# File 'generated/google/apis/monitoring_v1/classes.rb', line 172

def weight
  @weight
end

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

The display widgets arranged vertically in this column. Corresponds to the JSON property widgets



177
178
179
# File 'generated/google/apis/monitoring_v1/classes.rb', line 177

def widgets
  @widgets
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



184
185
186
187
# File 'generated/google/apis/monitoring_v1/classes.rb', line 184

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