interface SingleMetricAnomalyDetectorProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.CloudWatch.CfnAnomalyDetector.SingleMetricAnomalyDetectorProperty |
Java | software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector.SingleMetricAnomalyDetectorProperty |
Python | aws_cdk.aws_cloudwatch.CfnAnomalyDetector.SingleMetricAnomalyDetectorProperty |
TypeScript | @aws-cdk/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 * as cloudwatch from '@aws-cdk/aws-cloudwatch';
const singleMetricAnomalyDetectorProperty: cloudwatch.CfnAnomalyDetector.SingleMetricAnomalyDetectorProperty = {
dimensions: [{
name: 'name',
value: 'value',
}],
metricName: 'metricName',
namespace: 'namespace',
stat: 'stat',
};
Properties
| Name | Type | Description |
|---|---|---|
| dimensions? | IResolvable | IResolvable | Dimension[] | The metric dimensions to create the anomaly detection model for. |
| metric | string | The name of the metric to create the anomaly detection model for. |
| namespace? | string | The namespace of the metric to create the anomaly detection model for. |
| stat? | string | The statistic to use for the metric and anomaly detection model. |
dimensions?
Type:
IResolvable | IResolvable | Dimension[]
(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.

.NET
Java
Python
TypeScript