Update Log Anomaly Detector
cloudwatchlogs_update_log_anomaly_detector | R Documentation |
Updates an existing log anomaly detector¶
Description¶
Updates an existing log anomaly detector.
Usage¶
cloudwatchlogs_update_log_anomaly_detector(anomalyDetectorArn,
evaluationFrequency, filterPattern, anomalyVisibilityTime, enabled)
Arguments¶
anomalyDetectorArn
[required] The ARN of the anomaly detector that you want to update.
evaluationFrequency
Specifies how often the anomaly detector runs and look for anomalies. 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 setting
evaluationFrequency
toFIFTEEN_MIN
might be appropriate.filterPattern
anomalyVisibilityTime
The number of days to use as the life cycle of anomalies. After this time, anomalies are automatically baselined and the anomaly detector model will treat new occurrences of similar event as normal. Therefore, if you do not correct the cause of an anomaly during this time, it will be considered normal going forward and will not be detected.
enabled
[required] Use this parameter to pause or restart the anomaly detector.
Value¶
An empty list.
Request syntax¶
svc$update_log_anomaly_detector(
anomalyDetectorArn = "string",
evaluationFrequency = "ONE_MIN"|"FIVE_MIN"|"TEN_MIN"|"FIFTEEN_MIN"|"THIRTY_MIN"|"ONE_HOUR",
filterPattern = "string",
anomalyVisibilityTime = 123,
enabled = TRUE|FALSE
)