Class CfnAnomalyDetectorPropsMixin.RandomCutForestConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.aps.CfnAnomalyDetectorPropsMixin.RandomCutForestConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAnomalyDetectorPropsMixin.RandomCutForestConfigurationProperty>
- Enclosing interface:
CfnAnomalyDetectorPropsMixin.RandomCutForestConfigurationProperty
@Stability(Stable)
public static final class CfnAnomalyDetectorPropsMixin.RandomCutForestConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAnomalyDetectorPropsMixin.RandomCutForestConfigurationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.ignoreNearExpectedFromAbove(CfnAnomalyDetectorPropsMixin.IgnoreNearExpectedProperty ignoreNearExpectedFromAbove) ignoreNearExpectedFromAbove(IResolvable ignoreNearExpectedFromAbove) ignoreNearExpectedFromBelow(CfnAnomalyDetectorPropsMixin.IgnoreNearExpectedProperty ignoreNearExpectedFromBelow) ignoreNearExpectedFromBelow(IResolvable ignoreNearExpectedFromBelow) sampleSize(Number sampleSize) shingleSize(Number shingleSize)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ignoreNearExpectedFromAbove
@Stability(Stable) public CfnAnomalyDetectorPropsMixin.RandomCutForestConfigurationProperty.Builder ignoreNearExpectedFromAbove(IResolvable ignoreNearExpectedFromAbove) Sets the value ofCfnAnomalyDetectorPropsMixin.RandomCutForestConfigurationProperty.getIgnoreNearExpectedFromAbove()- Parameters:
ignoreNearExpectedFromAbove- Configuration for ignoring values that are near expected values from above during anomaly detection.- Returns:
this
-
ignoreNearExpectedFromAbove
@Stability(Stable) public CfnAnomalyDetectorPropsMixin.RandomCutForestConfigurationProperty.Builder ignoreNearExpectedFromAbove(CfnAnomalyDetectorPropsMixin.IgnoreNearExpectedProperty ignoreNearExpectedFromAbove) Sets the value ofCfnAnomalyDetectorPropsMixin.RandomCutForestConfigurationProperty.getIgnoreNearExpectedFromAbove()- Parameters:
ignoreNearExpectedFromAbove- Configuration for ignoring values that are near expected values from above during anomaly detection.- Returns:
this
-
ignoreNearExpectedFromBelow
@Stability(Stable) public CfnAnomalyDetectorPropsMixin.RandomCutForestConfigurationProperty.Builder ignoreNearExpectedFromBelow(IResolvable ignoreNearExpectedFromBelow) Sets the value ofCfnAnomalyDetectorPropsMixin.RandomCutForestConfigurationProperty.getIgnoreNearExpectedFromBelow()- Parameters:
ignoreNearExpectedFromBelow- Configuration for ignoring values that are near expected values from below during anomaly detection.- Returns:
this
-
ignoreNearExpectedFromBelow
@Stability(Stable) public CfnAnomalyDetectorPropsMixin.RandomCutForestConfigurationProperty.Builder ignoreNearExpectedFromBelow(CfnAnomalyDetectorPropsMixin.IgnoreNearExpectedProperty ignoreNearExpectedFromBelow) Sets the value ofCfnAnomalyDetectorPropsMixin.RandomCutForestConfigurationProperty.getIgnoreNearExpectedFromBelow()- Parameters:
ignoreNearExpectedFromBelow- Configuration for ignoring values that are near expected values from below during anomaly detection.- Returns:
this
-
query
@Stability(Stable) public CfnAnomalyDetectorPropsMixin.RandomCutForestConfigurationProperty.Builder query(String query) - Parameters:
query- The Prometheus query used to retrieve the time-series data for anomaly detection.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
-
sampleSize
@Stability(Stable) public CfnAnomalyDetectorPropsMixin.RandomCutForestConfigurationProperty.Builder sampleSize(Number sampleSize) - 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 CfnAnomalyDetectorPropsMixin.RandomCutForestConfigurationProperty.Builder shingleSize(Number shingleSize) Sets the value ofCfnAnomalyDetectorPropsMixin.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<CfnAnomalyDetectorPropsMixin.RandomCutForestConfigurationProperty>- Returns:
- a new instance of
CfnAnomalyDetectorPropsMixin.RandomCutForestConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-