CfnLogAnomalyDetectorProps Struct
Properties for defining a CfnLogAnomalyDetector.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_logs as logs } from 'aws-cdk-lib';
const cfnLogAnomalyDetectorProps: logs.CfnLogAnomalyDetectorProps = {
accountId: 'accountId',
anomalyVisibilityTime: 123,
detectorName: 'detectorName',
evaluationFrequency: 'evaluationFrequency',
filterPattern: 'filterPattern',
kmsKeyId: 'kmsKeyId',
logGroupArnList: ['logGroupArnList'],
};
Properties
accountIdoptionalstringaccount_idoptionalstraccountIdoptionalStringAccountIdoptionalstringAccountIdoptional*string#anomalyVisibilityTimeoptionalnumberanomaly_visibility_timeoptionalint | floatanomalyVisibilityTimeoptionalNumberAnomalyVisibilityTimeoptionaldoubleAnomalyVisibilityTimeoptional*float64#notes
After this time period has elapsed for an anomaly, it will be automatically baselined and the anomaly detector will treat new occurrences of a similar anomaly as normal. Therefore, if you do not correct the cause of an anomaly during the time period specified in AnomalyVisibilityTime , it will be considered normal going forward and will not be detected as an anomaly.
detectorNameoptionalstringdetector_nameoptionalstrdetectorNameoptionalStringDetectorNameoptionalstringDetectorNameoptional*string#evaluationFrequencyoptionalstringevaluation_frequencyoptionalstrevaluationFrequencyoptionalStringEvaluationFrequencyoptionalstringEvaluationFrequencyoptional*string#Set this value according to the frequency that the log group receives new logs. For example, if the log group receives new log events every 10 minutes, then 15 minutes might be a good setting for EvaluationFrequency .
filterPatternoptionalstringfilter_patternoptionalstrfilterPatternoptionalStringFilterPatternoptionalstringFilterPatternoptional*string#For more information, see Filter and Pattern Syntax .
kmsKeyIdoptionalstringkms_key_idoptionalstrkmsKeyIdoptionalStringKmsKeyIdoptionalstringKmsKeyIdoptional*string#notes
If a key is assigned, the anomalies found and the model used by this detector are encrypted at rest with the key. If a key is assigned to an anomaly detector, a user must have permissions for both this key and for the anomaly detector to retrieve information about the anomalies that it finds.
For more information about using a AWS key and to see the required IAM policy, see Use a AWS key with an anomaly detector .
logGroupArnListoptionalstring[]log_group_arn_listoptionaltyping.List[str]logGroupArnListoptionalList<String>LogGroupArnListoptionalstring[]LogGroupArnListoptional*[]*string#You can specify only one log group ARN.