Class CfnAnomalyDetector.Builder
java.lang.Object
software.amazon.awscdk.services.aps.CfnAnomalyDetector.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAnomalyDetector>
- Enclosing class:
CfnAnomalyDetector
@Stability(Stable)
public static final class CfnAnomalyDetector.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAnomalyDetector>
A fluent builder for
CfnAnomalyDetector.-
Method Summary
Modifier and TypeMethodDescriptionThe user-friendly name of the anomaly detector.build()configuration(IResolvable configuration) The algorithm configuration of the anomaly detector.The algorithm configuration of the anomaly detector.static CfnAnomalyDetector.BuilderevaluationIntervalInSeconds(Number evaluationIntervalInSeconds) The frequency, in seconds, at which the anomaly detector evaluates metrics.The Amazon Managed Service for Prometheus metric labels associated with the anomaly detector.labels(IResolvable labels) The Amazon Managed Service for Prometheus metric labels associated with the anomaly detector.missingDataAction(IResolvable missingDataAction) The action taken when data is missing during evaluation.missingDataAction(CfnAnomalyDetector.MissingDataActionProperty missingDataAction) The action taken when data is missing during evaluation.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.
-
Method Details
-
create
@Stability(Stable) public static CfnAnomalyDetector.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnAnomalyDetector.Builder.
-
alias
The user-friendly name of the anomaly detector.- Parameters:
alias- The user-friendly name of the anomaly detector. This parameter is required.- Returns:
this- See Also:
-
configuration
The algorithm configuration of the anomaly detector.- Parameters:
configuration- The algorithm configuration of the anomaly detector. This parameter is required.- Returns:
this- See Also:
-
configuration
@Stability(Stable) public CfnAnomalyDetector.Builder configuration(CfnAnomalyDetector.AnomalyDetectorConfigurationProperty configuration) The algorithm configuration of the anomaly detector.- Parameters:
configuration- The algorithm configuration of the anomaly detector. This parameter is required.- Returns:
this- See Also:
-
workspace
An Amazon Managed Service for Prometheus workspace is a logical and isolated Prometheus server dedicated to ingesting, storing, and querying your Prometheus-compatible metrics.- Parameters:
workspace- An Amazon Managed Service for Prometheus workspace is a logical and isolated Prometheus server dedicated to ingesting, storing, and querying your Prometheus-compatible metrics. This parameter is required.- Returns:
this- See Also:
-
evaluationIntervalInSeconds
@Stability(Stable) public CfnAnomalyDetector.Builder evaluationIntervalInSeconds(Number evaluationIntervalInSeconds) The frequency, in seconds, at which the anomaly detector evaluates metrics.Default: - 60
- Parameters:
evaluationIntervalInSeconds- The frequency, in seconds, at which the anomaly detector evaluates metrics. This parameter is required.- Returns:
this- See Also:
-
labels
The Amazon Managed Service for Prometheus metric labels associated with the anomaly detector.- Parameters:
labels- The Amazon Managed Service for Prometheus metric labels associated with the anomaly detector. This parameter is required.- Returns:
this- See Also:
-
labels
The Amazon Managed Service for Prometheus metric labels associated with the anomaly detector.- Parameters:
labels- The Amazon Managed Service for Prometheus metric labels associated with the anomaly detector. This parameter is required.- Returns:
this- See Also:
-
missingDataAction
@Stability(Stable) public CfnAnomalyDetector.Builder missingDataAction(IResolvable missingDataAction) The action taken when data is missing during evaluation.- Parameters:
missingDataAction- The action taken when data is missing during evaluation. This parameter is required.- Returns:
this- See Also:
-
missingDataAction
@Stability(Stable) public CfnAnomalyDetector.Builder missingDataAction(CfnAnomalyDetector.MissingDataActionProperty missingDataAction) The action taken when data is missing during evaluation.- Parameters:
missingDataAction- The action taken when data is missing during evaluation. This parameter is required.- Returns:
this- See Also:
-
tags
The tags applied to the anomaly detector.- Parameters:
tags- The tags applied to the anomaly detector. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAnomalyDetector>- Returns:
- a newly built instance of
CfnAnomalyDetector.
-