Class: AWSCDK::LookoutMetrics::CfnAnomalyDetector::AnomalyDetectorConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lookout_metrics/cfn_anomaly_detector.rb

Overview

Contains information about a detector's configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(anomaly_detector_frequency:) ⇒ AnomalyDetectorConfigProperty

Returns a new instance of AnomalyDetectorConfigProperty.

Parameters:

  • anomaly_detector_frequency (String)

    The frequency at which the detector analyzes its source data.



566
567
568
569
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 566

def initialize(anomaly_detector_frequency:)
  @anomaly_detector_frequency = anomaly_detector_frequency
  Jsii::Type.check_type(@anomaly_detector_frequency, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "anomalyDetectorFrequency")
end

Instance Attribute Details

#anomaly_detector_frequencyString (readonly)

The frequency at which the detector analyzes its source data.



575
576
577
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 575

def anomaly_detector_frequency
  @anomaly_detector_frequency
end

Class Method Details

.jsii_propertiesObject



577
578
579
580
581
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 577

def self.jsii_properties
  {
    :anomaly_detector_frequency => "anomalyDetectorFrequency",
  }
end

Instance Method Details

#to_jsiiObject



583
584
585
586
587
588
589
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 583

def to_jsii
  result = {}
  result.merge!({
    "anomalyDetectorFrequency" => @anomaly_detector_frequency,
  })
  result.compact
end