AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::APS::AnomalyDetector

CfnAnomalyDetector

Anomaly 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

import { CfnAnomalyDetector } from 'aws-cdk-lib/aws-aps';

Or use the module namespace:

import * as aps from 'aws-cdk-lib/aws-aps';
// aps.CfnAnomalyDetector

Properties

Configuration passed to the constructor as CfnAnomalyDetectorProps.

aliasRequired
string

The user-friendly name of the anomaly detector.

configurationRequired
IResolvable | AnomalyDetectorConfigurationProperty

The algorithm configuration of the anomaly detector.

workspaceRequired
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.

evaluationIntervalInSecondsOptional
number

The frequency, in seconds, at which the anomaly detector evaluates metrics.

Default: - 60

labelsOptional
IResolvable | IResolvable | LabelProperty[]

The Amazon Managed Service for Prometheus metric labels associated with the anomaly detector.

missingDataActionOptional
IResolvable | MissingDataActionProperty

The action taken when data is missing during evaluation.

tagsOptional
CfnTag[]

The tags applied to the anomaly detector.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

LevelL1 (CloudFormation)
Moduleaws-aps
CFN TypeAWS::APS::AnomalyDetector
Properties7

External Links