Interface CfnAnomalyDetectorProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAnomalyDetectorProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:29.055Z")
@Stability(Stable)
public interface CfnAnomalyDetectorProps
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.aps.*;
CfnAnomalyDetectorProps cfnAnomalyDetectorProps = CfnAnomalyDetectorProps.builder()
.alias("alias")
.configuration(AnomalyDetectorConfigurationProperty.builder()
.randomCutForest(RandomCutForestConfigurationProperty.builder()
.query("query")
// the properties below are optional
.ignoreNearExpectedFromAbove(IgnoreNearExpectedProperty.builder()
.amount(123)
.ratio(123)
.build())
.ignoreNearExpectedFromBelow(IgnoreNearExpectedProperty.builder()
.amount(123)
.ratio(123)
.build())
.sampleSize(123)
.shingleSize(123)
.build())
.build())
.workspace("workspace")
// the properties below are optional
.evaluationIntervalInSeconds(123)
.labels(List.of(LabelProperty.builder()
.key("key")
.value("value")
.build()))
.missingDataAction(MissingDataActionProperty.builder()
.markAsAnomaly(false)
.skip(false)
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnAnomalyDetectorPropsstatic final classAn implementation forCfnAnomalyDetectorProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()getAlias()The user-friendly name of the anomaly detector.The algorithm configuration of the anomaly detector.default NumberThe frequency, in seconds, at which the anomaly detector evaluates metrics.default ObjectThe Amazon Managed Service for Prometheus metric labels associated with the anomaly detector.default ObjectThe action taken when data is missing during evaluation.getTags()The tags applied to the anomaly detector.An Amazon Managed Service for Prometheus workspace is a logical and isolated Prometheus server dedicated to ingesting, storing, and querying your Prometheus-compatible metrics.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAlias
The user-friendly name of the anomaly detector.- See Also:
-
getConfiguration
The algorithm configuration of the anomaly detector.Returns union: either
IResolvableorCfnAnomalyDetector.AnomalyDetectorConfigurationProperty- See Also:
-
getWorkspace
An Amazon Managed Service for Prometheus workspace is a logical and isolated Prometheus server dedicated to ingesting, storing, and querying your Prometheus-compatible metrics.- See Also:
-
getEvaluationIntervalInSeconds
The frequency, in seconds, at which the anomaly detector evaluates metrics.Default: - 60
- See Also:
-
getLabels
The Amazon Managed Service for Prometheus metric labels associated with the anomaly detector.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnAnomalyDetector.LabelProperty>- See Also:
-
getMissingDataAction
The action taken when data is missing during evaluation.Returns union: either
IResolvableorCfnAnomalyDetector.MissingDataActionProperty- See Also:
-
getTags
The tags applied to the anomaly detector.- See Also:
-
builder
- Returns:
- a
CfnAnomalyDetectorProps.BuilderofCfnAnomalyDetectorProps
-