Class: AWSCDK::APS::CfnAnomalyDetector::IgnoreNearExpectedProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(amount: nil, ratio: nil) ⇒ IgnoreNearExpectedProperty

Returns a new instance of IgnoreNearExpectedProperty.

Parameters:

  • amount (Numeric, nil) (defaults to: nil)

    The absolute amount by which values can differ from expected values before being considered anomalous.

  • ratio (Numeric, nil) (defaults to: nil)

    The ratio by which values can differ from expected values before being considered anomalous.



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

#amountNumeric? (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

#ratioNumeric? (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_propertiesObject



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_jsiiObject



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