interface SingleMetricAnomalyDetectorProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CloudWatch.CfnAnomalyDetector.SingleMetricAnomalyDetectorProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscloudwatch#CfnAnomalyDetector_SingleMetricAnomalyDetectorProperty |
Java | software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector.SingleMetricAnomalyDetectorProperty |
Python | aws_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.
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.
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
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.