Class: AWSCDK::QuickSight::CfnTemplate::MetricComparisonComputationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::MetricComparisonComputationProperty
- Defined in:
- quick_sight/cfn_template.rb
Overview
The metric comparison computation configuration.
Instance Attribute Summary collapse
-
#computation_id ⇒ String
readonly
The ID for a computation.
-
#from_value ⇒ AWSCDK::IResolvable, ...
readonly
The field that is used in a metric comparison from value setup.
-
#name ⇒ String?
readonly
The name of a computation.
-
#target_value ⇒ AWSCDK::IResolvable, ...
readonly
The field that is used in a metric comparison to value setup.
-
#time ⇒ AWSCDK::IResolvable, ...
readonly
The time field that is used in a computation.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(computation_id:, from_value: nil, name: nil, target_value: nil, time: nil) ⇒ MetricComparisonComputationProperty
constructor
A new instance of MetricComparisonComputationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(computation_id:, from_value: nil, name: nil, target_value: nil, time: nil) ⇒ MetricComparisonComputationProperty
Returns a new instance of MetricComparisonComputationProperty.
17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 |
# File 'quick_sight/cfn_template.rb', line 17019 def initialize(computation_id:, from_value: nil, name: nil, target_value: nil, time: nil) @computation_id = computation_id Jsii::Type.check_type(@computation_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "computationId") @from_value = from_value.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::MeasureFieldProperty.new(**from_value.transform_keys(&:to_sym)) : from_value Jsii::Type.check_type(@from_value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLk1lYXN1cmVGaWVsZFByb3BlcnR5In1dfX0=")), "fromValue") unless @from_value.nil? @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? @target_value = target_value.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::MeasureFieldProperty.new(**target_value.transform_keys(&:to_sym)) : target_value Jsii::Type.check_type(@target_value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLk1lYXN1cmVGaWVsZFByb3BlcnR5In1dfX0=")), "targetValue") unless @target_value.nil? @time = time.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::DimensionFieldProperty.new(**time.transform_keys(&:to_sym)) : time Jsii::Type.check_type(@time, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkRpbWVuc2lvbkZpZWxkUHJvcGVydHkifV19fQ==")), "time") unless @time.nil? end |
Instance Attribute Details
#computation_id ⇒ String (readonly)
The ID for a computation.
17036 17037 17038 |
# File 'quick_sight/cfn_template.rb', line 17036 def computation_id @computation_id end |
#from_value ⇒ AWSCDK::IResolvable, ... (readonly)
The field that is used in a metric comparison from value setup.
17041 17042 17043 |
# File 'quick_sight/cfn_template.rb', line 17041 def from_value @from_value end |
#name ⇒ String? (readonly)
The name of a computation.
17046 17047 17048 |
# File 'quick_sight/cfn_template.rb', line 17046 def name @name end |
#target_value ⇒ AWSCDK::IResolvable, ... (readonly)
The field that is used in a metric comparison to value setup.
17051 17052 17053 |
# File 'quick_sight/cfn_template.rb', line 17051 def target_value @target_value end |
#time ⇒ AWSCDK::IResolvable, ... (readonly)
The time field that is used in a computation.
17056 17057 17058 |
# File 'quick_sight/cfn_template.rb', line 17056 def time @time end |
Class Method Details
.jsii_properties ⇒ Object
17058 17059 17060 17061 17062 17063 17064 17065 17066 |
# File 'quick_sight/cfn_template.rb', line 17058 def self.jsii_properties { :computation_id => "computationId", :from_value => "fromValue", :name => "name", :target_value => "targetValue", :time => "time", } end |
Instance Method Details
#to_jsii ⇒ Object
17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 17078 |
# File 'quick_sight/cfn_template.rb', line 17068 def to_jsii result = {} result.merge!({ "computationId" => @computation_id, "fromValue" => @from_value, "name" => @name, "targetValue" => @target_value, "time" => @time, }) result.compact end |