interface CfnAnomalyDetectorProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.APS.CfnAnomalyDetectorProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsaps#CfnAnomalyDetectorProps |
Java | software.amazon.awscdk.services.aps.CfnAnomalyDetectorProps |
Python | aws_cdk.aws_aps.CfnAnomalyDetectorProps |
TypeScript | aws-cdk-lib » aws_aps » CfnAnomalyDetectorProps |
Properties for defining a CfnAnomalyDetector.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-aps-anomalydetector.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_aps as aps } from 'aws-cdk-lib';
const cfnAnomalyDetectorProps: aps.CfnAnomalyDetectorProps = {
alias: 'alias',
configuration: {
randomCutForest: {
query: 'query',
// the properties below are optional
ignoreNearExpectedFromAbove: {
amount: 123,
ratio: 123,
},
ignoreNearExpectedFromBelow: {
amount: 123,
ratio: 123,
},
sampleSize: 123,
shingleSize: 123,
},
},
workspace: 'workspace',
// the properties below are optional
evaluationIntervalInSeconds: 123,
labels: [{
key: 'key',
value: 'value',
}],
missingDataAction: {
markAsAnomaly: false,
skip: false,
},
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| alias | string | The user-friendly name of the anomaly detector. |
| configuration | IResolvable | Anomaly | The algorithm configuration of the anomaly detector. |
| workspace | string | An Amazon Managed Service for Prometheus workspace is a logical and isolated Prometheus server dedicated to ingesting, storing, and querying your Prometheus-compatible metrics. |
| evaluation | number | The frequency, in seconds, at which the anomaly detector evaluates metrics. |
| labels? | IResolvable | (IResolvable | Label)[] | The Amazon Managed Service for Prometheus metric labels associated with the anomaly detector. |
| missing | IResolvable | Missing | The action taken when data is missing during evaluation. |
| tags? | Cfn[] | The tags applied to the anomaly detector. |
alias
Type:
string
The user-friendly name of the anomaly detector.
configuration
Type:
IResolvable | Anomaly
The algorithm configuration of the anomaly detector.
workspace
Type:
string
An Amazon Managed Service for Prometheus workspace is a logical and isolated Prometheus server dedicated to ingesting, storing, and querying your Prometheus-compatible metrics.
evaluationIntervalInSeconds?
Type:
number
(optional, default: 60)
The frequency, in seconds, at which the anomaly detector evaluates metrics.
labels?
Type:
IResolvable | (IResolvable | Label)[]
(optional)
The Amazon Managed Service for Prometheus metric labels associated with the anomaly detector.
missingDataAction?
Type:
IResolvable | Missing
(optional)
The action taken when data is missing during evaluation.
tags?
Type:
Cfn[]
(optional)
The tags applied to the anomaly detector.

.NET
Go
Java
Python
TypeScript