interface CfnAnomalyDetectorProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CloudWatch.CfnAnomalyDetectorProps |
Java | software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetectorProps |
Python | aws_cdk.aws_cloudwatch.CfnAnomalyDetectorProps |
TypeScript | @aws-cdk/aws-cloudwatch » CfnAnomalyDetectorProps |
Properties for defining a CfnAnomalyDetector
.
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 cfnAnomalyDetectorProps: cloudwatch.CfnAnomalyDetectorProps = {
configuration: {
excludedTimeRanges: [{
endTime: 'endTime',
startTime: 'startTime',
}],
metricTimeZone: 'metricTimeZone',
},
dimensions: [{
name: 'name',
value: 'value',
}],
metricMathAnomalyDetector: {
metricDataQueries: [{
id: 'id',
// the properties below are optional
accountId: 'accountId',
expression: 'expression',
label: 'label',
metricStat: {
metric: {
metricName: 'metricName',
namespace: 'namespace',
// the properties below are optional
dimensions: [{
name: 'name',
value: 'value',
}],
},
period: 123,
stat: 'stat',
// the properties below are optional
unit: 'unit',
},
period: 123,
returnData: false,
}],
},
metricName: 'metricName',
namespace: 'namespace',
singleMetricAnomalyDetector: {
dimensions: [{
name: 'name',
value: 'value',
}],
metricName: 'metricName',
namespace: 'namespace',
stat: 'stat',
},
stat: 'stat',
};
Properties
Name | Type | Description |
---|---|---|
configuration? | IResolvable | Configuration | Specifies details about how the anomaly detection model is to be trained, including time ranges to exclude when training and updating the model. |
dimensions? | IResolvable | IResolvable | Dimension [] | The dimensions of the metric associated with the anomaly detection band. |
metric | IResolvable | Metric | The CloudWatch metric math expression for this anomaly detector. |
metric | string | The name of the metric associated with the anomaly detection band. |
namespace? | string | The namespace of the metric associated with the anomaly detection band. |
single | IResolvable | Single | The CloudWatch metric and statistic for this anomaly detector. |
stat? | string | The statistic of the metric associated with the anomaly detection band. |
configuration?
Type:
IResolvable
|
Configuration
(optional)
Specifies 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.
dimensions?
Type:
IResolvable
|
IResolvable
|
Dimension
[]
(optional)
The dimensions of the metric associated with the anomaly detection band.
metricMathAnomalyDetector?
Type:
IResolvable
|
Metric
(optional)
The CloudWatch metric math expression for this anomaly detector.
metricName?
Type:
string
(optional)
The name of the metric associated with the anomaly detection band.
namespace?
Type:
string
(optional)
The namespace of the metric associated with the anomaly detection band.
singleMetricAnomalyDetector?
Type:
IResolvable
|
Single
(optional)
The CloudWatch metric and statistic for this anomaly detector.
stat?
Type:
string
(optional)
The statistic of the metric associated with the anomaly detection band.