AWS::CloudWatch::AnomalyDetectorThe `AWS::CloudWatch::AnomalyDetector` type specifies an anomaly detection band for a certain metric and statistic. The band represents the expected "normal" range for the metric values. Anomaly detection bands can be used for visualization of a metric's expected values, and for alarms. For more information see [Using CloudWatch anomaly detection.](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Anomaly_Detection.html) .
import { CfnAnomalyDetector } from 'aws-cdk-lib/aws-cloudwatch';Or use the module namespace:
import * as cloudwatch from 'aws-cdk-lib/aws-cloudwatch';
// cloudwatch.CfnAnomalyDetectorConfiguration passed to the constructor as CfnAnomalyDetectorProps.
configurationOptionalIResolvable | ConfigurationPropertySpecifies details about how the anomaly detection model is to be trained, including time ranges to exclude when training and updating the model. The configuration can also include the time zone to use for the metric.
dimensionsOptionalIResolvable | IResolvable | DimensionProperty[]The dimensions of the metric associated with the anomaly detection band.
metricCharacteristicsOptionalIResolvable | MetricCharacteristicsPropertyUse this object to include parameters to provide information about your metric to CloudWatch to help it build more accurate anomaly detection models. Currently, it includes the `PeriodicSpikes` parameter.
metricMathAnomalyDetectorOptionalIResolvable | MetricMathAnomalyDetectorPropertyThe CloudWatch metric math expression for this anomaly detector.
metricNameOptionalstringThe name of the metric associated with the anomaly detection band.
namespaceOptionalstringThe namespace of the metric associated with the anomaly detection band.
singleMetricAnomalyDetectorOptionalIResolvable | SingleMetricAnomalyDetectorPropertyThe CloudWatch metric and statistic for this anomaly detector.
statOptionalstringThe statistic of the metric associated with the anomaly detection band.
This L1 construct maps directly to the following CloudFormation resource type.
Everything you need to know about Amazon CloudWatch on one page. HD quality, print-friendly.
Download Free Infographicaws-cloudwatchAWS::CloudWatch::AnomalyDetector