Class: AWSCDK::CloudWatch::TableSummaryProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cloud_watch/table_summary_props.rb

Overview

Properties for TableWidget's summary columns.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(columns: nil, hide_non_summary_columns: nil, sticky: nil) ⇒ TableSummaryProps

Returns a new instance of TableSummaryProps.

Parameters:

  • columns (Array<AWSCDK::CloudWatch::TableSummaryColumn>, nil) (defaults to: nil)

    Summary columns.

  • hide_non_summary_columns (Boolean, nil) (defaults to: nil)

    Prevent the columns of datapoints from being displayed, so that only the label and summary columns are displayed.

  • sticky (Boolean, nil) (defaults to: nil)

    Make the summary columns sticky, so that they remain in view while scrolling.



10
11
12
13
14
15
16
17
# File 'cloud_watch/table_summary_props.rb', line 10

def initialize(columns: nil, hide_non_summary_columns: nil, sticky: nil)
  @columns = columns
  Jsii::Type.check_type(@columns, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jbG91ZHdhdGNoLlRhYmxlU3VtbWFyeUNvbHVtbiJ9LCJraW5kIjoiYXJyYXkifX0=")), "columns") unless @columns.nil?
  @hide_non_summary_columns = hide_non_summary_columns
  Jsii::Type.check_type(@hide_non_summary_columns, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "hideNonSummaryColumns") unless @hide_non_summary_columns.nil?
  @sticky = sticky
  Jsii::Type.check_type(@sticky, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "sticky") unless @sticky.nil?
end

Instance Attribute Details

#columnsArray<AWSCDK::CloudWatch::TableSummaryColumn>? (readonly)

Note:

Default: - No summary columns will be shown

Summary columns.



23
24
25
# File 'cloud_watch/table_summary_props.rb', line 23

def columns
  @columns
end

#hide_non_summary_columnsBoolean? (readonly)

Note:

Default: - false

Prevent the columns of datapoints from being displayed, so that only the label and summary columns are displayed.

Returns:

  • (Boolean, nil)


28
29
30
# File 'cloud_watch/table_summary_props.rb', line 28

def hide_non_summary_columns
  @hide_non_summary_columns
end

#stickyBoolean? (readonly)

Note:

Default: - false

Make the summary columns sticky, so that they remain in view while scrolling.

Returns:

  • (Boolean, nil)


33
34
35
# File 'cloud_watch/table_summary_props.rb', line 33

def sticky
  @sticky
end

Class Method Details

.jsii_propertiesObject



35
36
37
38
39
40
41
# File 'cloud_watch/table_summary_props.rb', line 35

def self.jsii_properties
  {
    :columns => "columns",
    :hide_non_summary_columns => "hideNonSummaryColumns",
    :sticky => "sticky",
  }
end

Instance Method Details

#to_jsiiObject



43
44
45
46
47
48
49
50
51
# File 'cloud_watch/table_summary_props.rb', line 43

def to_jsii
  result = {}
  result.merge!({
    "columns" => @columns,
    "hideNonSummaryColumns" => @hide_non_summary_columns,
    "sticky" => @sticky,
  })
  result.compact
end