Class: AWSCDK::CloudWatch::CfnAnomalyDetector::MetricMathAnomalyDetectorProperty

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

Overview

Indicates the CloudWatch math expression that provides the time series the anomaly detector uses as input.

The designated math expression must return a single time series.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(metric_data_queries: nil) ⇒ MetricMathAnomalyDetectorProperty

Returns a new instance of MetricMathAnomalyDetectorProperty.

Parameters:



863
864
865
866
# File 'cloud_watch/cfn_anomaly_detector.rb', line 863

def initialize(metric_data_queries: nil)
  @metric_data_queries = metric_data_queries
  Jsii::Type.check_type(@metric_data_queries, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5DZm5Bbm9tYWx5RGV0ZWN0b3IuTWV0cmljRGF0YVF1ZXJ5UHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "metricDataQueries") unless @metric_data_queries.nil?
end

Instance Attribute Details

#metric_data_queriesAWSCDK::IResolvable, ... (readonly)

An array of metric data query structures that enables you to create an anomaly detector based on the result of a metric math expression.

Each item in MetricDataQueries gets a metric or performs a math expression. One item in MetricDataQueries is the expression that provides the time series that the anomaly detector uses as input. Designate the expression by setting ReturnData to true for this object in the array. For all other expressions and metrics, set ReturnData to false . The designated expression must return a single time series.



874
875
876
# File 'cloud_watch/cfn_anomaly_detector.rb', line 874

def metric_data_queries
  @metric_data_queries
end

Class Method Details

.jsii_propertiesObject



876
877
878
879
880
# File 'cloud_watch/cfn_anomaly_detector.rb', line 876

def self.jsii_properties
  {
    :metric_data_queries => "metricDataQueries",
  }
end

Instance Method Details

#to_jsiiObject



882
883
884
885
886
887
888
# File 'cloud_watch/cfn_anomaly_detector.rb', line 882

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