Class: AWSCDK::CloudWatch::YAxisProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudWatch::YAxisProps
- Defined in:
- cloud_watch/y_axis_props.rb
Overview
Properties for a Y-Axis.
Instance Attribute Summary collapse
-
#label ⇒ String?
readonly
The label.
-
#max ⇒ Numeric?
readonly
The max value.
-
#min ⇒ Numeric?
readonly
The min value.
-
#show_units ⇒ Boolean?
readonly
Whether to show units.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(label: nil, max: nil, min: nil, show_units: nil) ⇒ YAxisProps
constructor
A new instance of YAxisProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(label: nil, max: nil, min: nil, show_units: nil) ⇒ YAxisProps
Returns a new instance of YAxisProps.
11 12 13 14 15 16 17 18 19 20 |
# File 'cloud_watch/y_axis_props.rb', line 11 def initialize(label: nil, max: nil, min: nil, show_units: nil) @label = label Jsii::Type.check_type(@label, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "label") unless @label.nil? @max = max Jsii::Type.check_type(@max, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "max") unless @max.nil? @min = min Jsii::Type.check_type(@min, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "min") unless @min.nil? @show_units = show_units Jsii::Type.check_type(@show_units, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "showUnits") unless @show_units.nil? end |
Instance Attribute Details
#label ⇒ String? (readonly)
Note:
Default: - No label
The label.
26 27 28 |
# File 'cloud_watch/y_axis_props.rb', line 26 def label @label end |
#max ⇒ Numeric? (readonly)
Note:
Default: - Auto
The max value.
31 32 33 |
# File 'cloud_watch/y_axis_props.rb', line 31 def max @max end |
#min ⇒ Numeric? (readonly)
Note:
Default: - Auto
The min value.
36 37 38 |
# File 'cloud_watch/y_axis_props.rb', line 36 def min @min end |
#show_units ⇒ Boolean? (readonly)
Note:
Default: true
Whether to show units.
41 42 43 |
# File 'cloud_watch/y_axis_props.rb', line 41 def show_units @show_units end |
Class Method Details
.jsii_properties ⇒ Object
43 44 45 46 47 48 49 50 |
# File 'cloud_watch/y_axis_props.rb', line 43 def self.jsii_properties { :label => "label", :max => "max", :min => "min", :show_units => "showUnits", } end |
Instance Method Details
#to_jsii ⇒ Object
52 53 54 55 56 57 58 59 60 61 |
# File 'cloud_watch/y_axis_props.rb', line 52 def to_jsii result = {} result.merge!({ "label" => @label, "max" => @max, "min" => @min, "showUnits" => @show_units, }) result.compact end |