Class: AWSCDK::QuickSight::CfnTemplate::NumericalAggregationFunctionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::NumericalAggregationFunctionProperty
- Defined in:
- quick_sight/cfn_template.rb
Overview
Aggregation for numerical values.
Instance Attribute Summary collapse
-
#percentile_aggregation ⇒ AWSCDK::IResolvable, ...
readonly
An aggregation based on the percentile of values in a dimension or measure.
-
#simple_numerical_aggregation ⇒ String?
readonly
Built-in aggregation functions for numerical values.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(percentile_aggregation: nil, simple_numerical_aggregation: nil) ⇒ NumericalAggregationFunctionProperty
constructor
A new instance of NumericalAggregationFunctionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(percentile_aggregation: nil, simple_numerical_aggregation: nil) ⇒ NumericalAggregationFunctionProperty
Returns a new instance of NumericalAggregationFunctionProperty.
17895 17896 17897 17898 17899 17900 |
# File 'quick_sight/cfn_template.rb', line 17895 def initialize(percentile_aggregation: nil, simple_numerical_aggregation: nil) @percentile_aggregation = percentile_aggregation.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::PercentileAggregationProperty.new(**percentile_aggregation.transform_keys(&:to_sym)) : percentile_aggregation Jsii::Type.check_type(@percentile_aggregation, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLlBlcmNlbnRpbGVBZ2dyZWdhdGlvblByb3BlcnR5In1dfX0=")), "percentileAggregation") unless @percentile_aggregation.nil? @simple_numerical_aggregation = simple_numerical_aggregation Jsii::Type.check_type(@simple_numerical_aggregation, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "simpleNumericalAggregation") unless @simple_numerical_aggregation.nil? end |
Instance Attribute Details
#percentile_aggregation ⇒ AWSCDK::IResolvable, ... (readonly)
An aggregation based on the percentile of values in a dimension or measure.
17906 17907 17908 |
# File 'quick_sight/cfn_template.rb', line 17906 def percentile_aggregation @percentile_aggregation end |
#simple_numerical_aggregation ⇒ String? (readonly)
Built-in aggregation functions for numerical values.
SUM: The sum of a dimension or measure.AVERAGE: The average of a dimension or measure.MIN: The minimum value of a dimension or measure.MAX: The maximum value of a dimension or measure.COUNT: The count of a dimension or measure.DISTINCT_COUNT: The count of distinct values in a dimension or measure.VAR: The variance of a dimension or measure.VARP: The partitioned variance of a dimension or measure.STDEV: The standard deviation of a dimension or measure.STDEVP: The partitioned standard deviation of a dimension or measure.MEDIAN: The median value of a dimension or measure.
17923 17924 17925 |
# File 'quick_sight/cfn_template.rb', line 17923 def simple_numerical_aggregation @simple_numerical_aggregation end |
Class Method Details
.jsii_properties ⇒ Object
17925 17926 17927 17928 17929 17930 |
# File 'quick_sight/cfn_template.rb', line 17925 def self.jsii_properties { :percentile_aggregation => "percentileAggregation", :simple_numerical_aggregation => "simpleNumericalAggregation", } end |
Instance Method Details
#to_jsii ⇒ Object
17932 17933 17934 17935 17936 17937 17938 17939 |
# File 'quick_sight/cfn_template.rb', line 17932 def to_jsii result = {} result.merge!({ "percentileAggregation" => @percentile_aggregation, "simpleNumericalAggregation" => @simple_numerical_aggregation, }) result.compact end |