AWS::APS::AnomalyDetectorAnomaly detection uses the Random Cut Forest algorithm for time-series analysis. The anomaly detector analyzes Amazon Managed Service for Prometheus metrics to identify unusual patterns and behaviors.
import { CfnAnomalyDetector } from 'aws-cdk-lib/aws-aps';Or use the module namespace:
import * as aps from 'aws-cdk-lib/aws-aps';
// aps.CfnAnomalyDetectorConfiguration passed to the constructor as CfnAnomalyDetectorProps.
aliasRequiredstringThe user-friendly name of the anomaly detector.
configurationRequiredIResolvable | AnomalyDetectorConfigurationPropertyThe algorithm configuration of the anomaly detector.
workspaceRequiredstringAn Amazon Managed Service for Prometheus workspace is a logical and isolated Prometheus server dedicated to ingesting, storing, and querying your Prometheus-compatible metrics.
evaluationIntervalInSecondsOptionalnumberThe frequency, in seconds, at which the anomaly detector evaluates metrics.
Default: - 60
labelsOptionalIResolvable | IResolvable | LabelProperty[]The Amazon Managed Service for Prometheus metric labels associated with the anomaly detector.
missingDataActionOptionalIResolvable | MissingDataActionPropertyThe action taken when data is missing during evaluation.
tagsOptionalCfnTag[]The tags applied to the anomaly detector.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-apsAWS::APS::AnomalyDetector