Class: AWSCDK::APS::CfnAnomalyDetector::IgnoreNearExpectedProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::APS::CfnAnomalyDetector::IgnoreNearExpectedProperty
- Defined in:
- aps/cfn_anomaly_detector.rb
Overview
Configuration for threshold settings that determine when values near expected values should be ignored during anomaly detection.
Instance Attribute Summary collapse
-
#amount ⇒ Numeric?
readonly
The absolute amount by which values can differ from expected values before being considered anomalous.
-
#ratio ⇒ Numeric?
readonly
The ratio by which values can differ from expected values before being considered anomalous.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(amount: nil, ratio: nil) ⇒ IgnoreNearExpectedProperty
constructor
A new instance of IgnoreNearExpectedProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(amount: nil, ratio: nil) ⇒ IgnoreNearExpectedProperty
Returns a new instance of IgnoreNearExpectedProperty.
633 634 635 636 637 638 |
# File 'aps/cfn_anomaly_detector.rb', line 633 def initialize(amount: nil, ratio: nil) @amount = amount Jsii::Type.check_type(@amount, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "amount") unless @amount.nil? @ratio = ratio Jsii::Type.check_type(@ratio, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "ratio") unless @ratio.nil? end |
Instance Attribute Details
#amount ⇒ Numeric? (readonly)
The absolute amount by which values can differ from expected values before being considered anomalous.
644 645 646 |
# File 'aps/cfn_anomaly_detector.rb', line 644 def amount @amount end |
#ratio ⇒ Numeric? (readonly)
The ratio by which values can differ from expected values before being considered anomalous.
649 650 651 |
# File 'aps/cfn_anomaly_detector.rb', line 649 def ratio @ratio end |
Class Method Details
.jsii_properties ⇒ Object
651 652 653 654 655 656 |
# File 'aps/cfn_anomaly_detector.rb', line 651 def self.jsii_properties { :amount => "amount", :ratio => "ratio", } end |
Instance Method Details
#to_jsii ⇒ Object
658 659 660 661 662 663 664 665 |
# File 'aps/cfn_anomaly_detector.rb', line 658 def to_jsii result = {} result.merge!({ "amount" => @amount, "ratio" => @ratio, }) result.compact end |