Class CfnLogAnomalyDetectorPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
An anomaly detector can help surface issues by automatically discovering anomalies in your log event traffic. An anomaly detector uses machine learning algorithms to scan log events and find patterns . A pattern is a shared text structure that recurs among your log fields. Patterns provide a useful tool for analyzing large sets of logs because a large number of log events can often be compressed into a few patterns.
The anomaly detector uses pattern recognition to find anomalies , which are unusual log events. It compares current log events and patterns with trained baselines.
Fields within a pattern are called tokens . Fields that vary within a pattern, such as a request ID or timestamp, are referred to as dynamic tokens and represented by <*> .
For more information see Log anomaly detection .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.logs.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
CfnLogAnomalyDetectorPropsMixin cfnLogAnomalyDetectorPropsMixin = CfnLogAnomalyDetectorPropsMixin.Builder.create(CfnLogAnomalyDetectorMixinProps.builder()
.accountId("accountId")
.anomalyVisibilityTime(123)
.detectorName("detectorName")
.evaluationFrequency("evaluationFrequency")
.filterPattern("filterPattern")
.kmsKeyId("kmsKeyId")
.logGroupArnList(List.of("logGroupArnList"))
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnLogAnomalyDetectorPropsMixin.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::Logs::LogAnomalyDetector.CfnLogAnomalyDetectorPropsMixin(CfnLogAnomalyDetectorMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::Logs::LogAnomalyDetector.protectedCfnLogAnomalyDetectorPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnLogAnomalyDetectorPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnLogAnomalyDetectorMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnLogAnomalyDetectorPropsMixin
protected CfnLogAnomalyDetectorPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnLogAnomalyDetectorPropsMixin
protected CfnLogAnomalyDetectorPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnLogAnomalyDetectorPropsMixin
@Stability(Stable) public CfnLogAnomalyDetectorPropsMixin(@NotNull CfnLogAnomalyDetectorMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::Logs::LogAnomalyDetector.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnLogAnomalyDetectorPropsMixin
@Stability(Stable) public CfnLogAnomalyDetectorPropsMixin(@NotNull CfnLogAnomalyDetectorMixinProps props) Create a mixin to apply properties toAWS::Logs::LogAnomalyDetector.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-