aws-cdk-lib.aws_cloudwatch.CfnAnomalyDetector.SingleMetricAnomalyDetectorProperty

interface SingleMetricAnomalyDetectorProperty

LanguageType name
.NETAmazon.CDK.AWS.CloudWatch.CfnAnomalyDetector.SingleMetricAnomalyDetectorProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscloudwatch#CfnAnomalyDetector_SingleMetricAnomalyDetectorProperty
Javasoftware.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector.SingleMetricAnomalyDetectorProperty
Pythonaws_cdk.aws_cloudwatch.CfnAnomalyDetector.SingleMetricAnomalyDetectorProperty
TypeScript aws-cdk-lib » aws_cloudwatch » CfnAnomalyDetector » SingleMetricAnomalyDetectorProperty

Designates the CloudWatch metric and statistic that provides the time series the anomaly detector uses as input.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudwatch as cloudwatch } from 'aws-cdk-lib';
const singleMetricAnomalyDetectorProperty: cloudwatch.CfnAnomalyDetector.SingleMetricAnomalyDetectorProperty = {
  dimensions: [{
    name: 'name',
    value: 'value',
  }],
  metricName: 'metricName',
  namespace: 'namespace',
  stat: 'stat',
};

Properties

NameTypeDescription
dimensions?IResolvable | IResolvable | DimensionProperty[]The metric dimensions to create the anomaly detection model for.
metricName?stringThe name of the metric to create the anomaly detection model for.
namespace?stringThe namespace of the metric to create the anomaly detection model for.
stat?stringThe statistic to use for the metric and anomaly detection model.

dimensions?

Type: IResolvable | IResolvable | DimensionProperty[] (optional)

The metric dimensions to create the anomaly detection model for.


metricName?

Type: string (optional)

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


namespace?

Type: string (optional)

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


stat?

Type: string (optional)

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