Class CfnAnomalyDetector.RandomCutForestConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.aps.CfnAnomalyDetector.RandomCutForestConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAnomalyDetector.RandomCutForestConfigurationProperty>
- Enclosing interface:
CfnAnomalyDetector.RandomCutForestConfigurationProperty
@Stability(Stable)
public static final class CfnAnomalyDetector.RandomCutForestConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAnomalyDetector.RandomCutForestConfigurationProperty>
A builder for
CfnAnomalyDetector.RandomCutForestConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.ignoreNearExpectedFromAbove(IResolvable ignoreNearExpectedFromAbove) ignoreNearExpectedFromAbove(CfnAnomalyDetector.IgnoreNearExpectedProperty ignoreNearExpectedFromAbove) ignoreNearExpectedFromBelow(IResolvable ignoreNearExpectedFromBelow) ignoreNearExpectedFromBelow(CfnAnomalyDetector.IgnoreNearExpectedProperty ignoreNearExpectedFromBelow) Sets the value ofCfnAnomalyDetector.RandomCutForestConfigurationProperty.getQuery()sampleSize(Number sampleSize) Sets the value ofCfnAnomalyDetector.RandomCutForestConfigurationProperty.getSampleSize()shingleSize(Number shingleSize) Sets the value ofCfnAnomalyDetector.RandomCutForestConfigurationProperty.getShingleSize()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
query
@Stability(Stable) public CfnAnomalyDetector.RandomCutForestConfigurationProperty.Builder query(String query) Sets the value ofCfnAnomalyDetector.RandomCutForestConfigurationProperty.getQuery()- Parameters:
query- The Prometheus query used to retrieve the time-series data for anomaly detection. This parameter is required.Random Cut Forest queries must be wrapped by a supported PromQL aggregation operator. For more information, see Aggregation operators on the Prometheus docs website.
Supported PromQL aggregation operators :
avg,count,group,max,min,quantile,stddev,stdvar, andsum.- Returns:
this
-
ignoreNearExpectedFromAbove
@Stability(Stable) public CfnAnomalyDetector.RandomCutForestConfigurationProperty.Builder ignoreNearExpectedFromAbove(IResolvable ignoreNearExpectedFromAbove) Sets the value ofCfnAnomalyDetector.RandomCutForestConfigurationProperty.getIgnoreNearExpectedFromAbove()- Parameters:
ignoreNearExpectedFromAbove- Configuration for ignoring values that are near expected values from above during anomaly detection.- Returns:
this
-
ignoreNearExpectedFromAbove
@Stability(Stable) public CfnAnomalyDetector.RandomCutForestConfigurationProperty.Builder ignoreNearExpectedFromAbove(CfnAnomalyDetector.IgnoreNearExpectedProperty ignoreNearExpectedFromAbove) Sets the value ofCfnAnomalyDetector.RandomCutForestConfigurationProperty.getIgnoreNearExpectedFromAbove()- Parameters:
ignoreNearExpectedFromAbove- Configuration for ignoring values that are near expected values from above during anomaly detection.- Returns:
this
-
ignoreNearExpectedFromBelow
@Stability(Stable) public CfnAnomalyDetector.RandomCutForestConfigurationProperty.Builder ignoreNearExpectedFromBelow(IResolvable ignoreNearExpectedFromBelow) Sets the value ofCfnAnomalyDetector.RandomCutForestConfigurationProperty.getIgnoreNearExpectedFromBelow()- Parameters:
ignoreNearExpectedFromBelow- Configuration for ignoring values that are near expected values from below during anomaly detection.- Returns:
this
-
ignoreNearExpectedFromBelow
@Stability(Stable) public CfnAnomalyDetector.RandomCutForestConfigurationProperty.Builder ignoreNearExpectedFromBelow(CfnAnomalyDetector.IgnoreNearExpectedProperty ignoreNearExpectedFromBelow) Sets the value ofCfnAnomalyDetector.RandomCutForestConfigurationProperty.getIgnoreNearExpectedFromBelow()- Parameters:
ignoreNearExpectedFromBelow- Configuration for ignoring values that are near expected values from below during anomaly detection.- Returns:
this
-
sampleSize
@Stability(Stable) public CfnAnomalyDetector.RandomCutForestConfigurationProperty.Builder sampleSize(Number sampleSize) Sets the value ofCfnAnomalyDetector.RandomCutForestConfigurationProperty.getSampleSize()- Parameters:
sampleSize- The number of data points sampled from the input stream for the Random Cut Forest algorithm. The default number is 256 consecutive data points.- Returns:
this
-
shingleSize
@Stability(Stable) public CfnAnomalyDetector.RandomCutForestConfigurationProperty.Builder shingleSize(Number shingleSize) Sets the value ofCfnAnomalyDetector.RandomCutForestConfigurationProperty.getShingleSize()- Parameters:
shingleSize- The number of consecutive data points used to create a shingle for the Random Cut Forest algorithm. The default number is 8 consecutive data points.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAnomalyDetector.RandomCutForestConfigurationProperty>- Returns:
- a new instance of
CfnAnomalyDetector.RandomCutForestConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-