Class: AWSCDK::CloudWatch::TableSummaryProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudWatch::TableSummaryProps
- Defined in:
- cloud_watch/table_summary_props.rb
Overview
Properties for TableWidget's summary columns.
Instance Attribute Summary collapse
-
#columns ⇒ Array<AWSCDK::CloudWatch::TableSummaryColumn>?
readonly
Summary columns.
-
#hide_non_summary_columns ⇒ Boolean?
readonly
Prevent the columns of datapoints from being displayed, so that only the label and summary columns are displayed.
-
#sticky ⇒ Boolean?
readonly
Make the summary columns sticky, so that they remain in view while scrolling.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(columns: nil, hide_non_summary_columns: nil, sticky: nil) ⇒ TableSummaryProps
constructor
A new instance of TableSummaryProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(columns: nil, hide_non_summary_columns: nil, sticky: nil) ⇒ TableSummaryProps
Returns a new instance of TableSummaryProps.
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
#columns ⇒ Array<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_columns ⇒ Boolean? (readonly)
Note:
Default: - false
Prevent the columns of datapoints from being displayed, so that only the label and summary columns are displayed.
28 29 30 |
# File 'cloud_watch/table_summary_props.rb', line 28 def hide_non_summary_columns @hide_non_summary_columns end |
#sticky ⇒ Boolean? (readonly)
Note:
Default: - false
Make the summary columns sticky, so that they remain in view while scrolling.
33 34 35 |
# File 'cloud_watch/table_summary_props.rb', line 33 def sticky @sticky end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |