AWS::CloudWatch::AnomalyDetector SingleMetricAnomalyDetector - AWS CloudFormation

AWS::CloudWatch::AnomalyDetector SingleMetricAnomalyDetector

Designates the CloudWatch metric and statistic that provides the time series the anomaly detector uses as input. If you have enabled unified cross-account observability, and this account is a monitoring account, the metric can be in the same account or a source account.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "AccountId" : String, "Dimensions" : [ Dimension, ... ], "MetricName" : String, "Namespace" : String, "Stat" : String }

YAML

AccountId: String Dimensions: - Dimension MetricName: String Namespace: String Stat: String

Properties

AccountId

If the CloudWatch metric that provides the time series that the anomaly detector uses as input is in another account, specify that account ID here. If you omit this parameter, the current account is used.

Required: No

Type: String

Update requires: Replacement

Dimensions

The metric dimensions to create the anomaly detection model for.

Required: No

Type: Array of Dimension

Maximum: 30

Update requires: Replacement

MetricName

The name of the metric to create the anomaly detection model for.

Required: No

Type: String

Minimum: 1

Maximum: 255

Update requires: Replacement

Namespace

The namespace of the metric to create the anomaly detection model for.

Required: No

Type: String

Pattern: [^:].*

Minimum: 1

Maximum: 255

Update requires: Replacement

Stat

The statistic to use for the metric and anomaly detection model.

Required: No

Type: String

Pattern: (SampleCount|Average|Sum|Minimum|Maximum|IQM|(p|tc|tm|ts|wm)(\d{1,2}(\.\d{0,10})?|100)|[ou]\d+(\.\d*)?)(_E|_L|_H)?|(TM|TC|TS|WM)\(((((\d{1,2})(\.\d{0,10})?|100(\.0{0,10})?)%)?:((\d{1,2})(\.\d{0,10})?|100(\.0{0,10})?)%|((\d{1,2})(\.\d{0,10})?|100(\.0{0,10})?)%:(((\d{1,2})(\.\d{0,10})?|100(\.0{0,10})?)%)?)\)|(TM|TC|TS|WM|PR)\(((\d+(\.\d{0,10})?|(\d+(\.\d{0,10})?[Ee][+-]?\d+)):((\d+(\.\d{0,10})?|(\d+(\.\d{0,10})?[Ee][+-]?\d+)))?|((\d+(\.\d{0,10})?|(\d+(\.\d{0,10})?[Ee][+-]?\d+)))?:(\d+(\.\d{0,10})?|(\d+(\.\d{0,10})?[Ee][+-]?\d+)))\)

Maximum: 50

Update requires: Replacement