Interface CfnAnomalyDetectorProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAnomalyDetectorProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:31.541Z")
@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 AnomalyDetector alias.Returns union: eitherIResolvableorCfnAnomalyDetector.AnomalyDetectorConfigurationPropertydefault NumberThe AnomalyDetector period of detection and metric generation.default ObjectAn array of key-value pairs to provide meta-data.default ObjectReturns union: eitherIResolvableorCfnAnomalyDetector.MissingDataActionPropertygetTags()An array of key-value pairs to apply to this resource.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 AnomalyDetector alias.- See Also:
-
getConfiguration
Returns union: eitherIResolvableorCfnAnomalyDetector.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 AnomalyDetector period of detection and metric generation.Default: - 60
- See Also:
-
getLabels
An array of key-value pairs to provide meta-data.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnAnomalyDetector.LabelProperty>- See Also:
-
getMissingDataAction
Returns union: eitherIResolvableorCfnAnomalyDetector.MissingDataActionProperty- See Also:
-
getTags
An array of key-value pairs to apply to this resource.- See Also:
-
builder
- Returns:
- a
CfnAnomalyDetectorProps.BuilderofCfnAnomalyDetectorProps
-