AnomalyDetectorConfigurationProperty Struct
The configuration for the anomaly detection algorithm.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_aps as aps } from 'aws-cdk-lib';
const anomalyDetectorConfigurationProperty: aps.CfnAnomalyDetector.AnomalyDetectorConfigurationProperty = {
randomCutForest: {
query: 'query',
// the properties below are optional
ignoreNearExpectedFromAbove: {
amount: 123,
ratio: 123,
},
ignoreNearExpectedFromBelow: {
amount: 123,
ratio: 123,
},
sampleSize: 123,
shingleSize: 123,
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_aps as aps
anomaly_detector_configuration_property = aps.CfnAnomalyDetector.AnomalyDetectorConfigurationProperty(
random_cut_forest=aps.CfnAnomalyDetector.RandomCutForestConfigurationProperty(
query="query",
# the properties below are optional
ignore_near_expected_from_above=aps.CfnAnomalyDetector.IgnoreNearExpectedProperty(
amount=123,
ratio=123
),
ignore_near_expected_from_below=aps.CfnAnomalyDetector.IgnoreNearExpectedProperty(
amount=123,
ratio=123
),
sample_size=123,
shingle_size=123
)
)
java
// 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.*;
AnomalyDetectorConfigurationProperty anomalyDetectorConfigurationProperty = 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();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.APS;
var anomalyDetectorConfigurationProperty = new AnomalyDetectorConfigurationProperty {
RandomCutForest = new RandomCutForestConfigurationProperty {
Query = "query",
// the properties below are optional
IgnoreNearExpectedFromAbove = new IgnoreNearExpectedProperty {
Amount = 123,
Ratio = 123
},
IgnoreNearExpectedFromBelow = new IgnoreNearExpectedProperty {
Amount = 123,
Ratio = 123
},
SampleSize = 123,
ShingleSize = 123
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
anomalyDetectorConfigurationProperty := &AnomalyDetectorConfigurationProperty{
RandomCutForest: &RandomCutForestConfigurationProperty{
Query: jsii.String("query"),
// the properties below are optional
IgnoreNearExpectedFromAbove: &IgnoreNearExpectedProperty{
Amount: jsii.Number(123),
Ratio: jsii.Number(123),
},
IgnoreNearExpectedFromBelow: &IgnoreNearExpectedProperty{
Amount: jsii.Number(123),
Ratio: jsii.Number(123),
},
SampleSize: jsii.Number(123),
ShingleSize: jsii.Number(123),
},
}
Properties
randomCutForestIResolvable | CfnAnomalyDetector.random_cut_foresttyping.Union[IResolvable, RandomCutForestConfigurationProperty]randomCutForestIResolvableRandomCutForestIResolvableRandomCutForestinterface{} required #The Random Cut Forest algorithm configuration for anomaly detection.