update_log_anomaly_detector
¶
update_log_anomaly_detector(
anomaly_detector_arn: AnomalyDetectorArn,
enabled: Boolean,
*,
config_overrides: Optional[CloudWatchLogsClientConfig] = None,
evaluation_frequency: Optional[EvaluationFrequency] = None,
filter_pattern: Optional[FilterPattern] = None,
anomaly_visibility_time: Optional[AnomalyVisibilityTime] = None,
) -> None
Updates an existing log anomaly detector.
Parameters:
-
anomaly_detector_arn(AnomalyDetectorArn) –The ARN of the anomaly detector that you want to update.
-
evaluation_frequency(Optional[EvaluationFrequency], default:None) –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
evaluationFrequencytoFIFTEEN_MINmight be appropriate. -
anomaly_visibility_time(Optional[AnomalyVisibilityTime], default:None) –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(Boolean) –Use this parameter to pause or restart the anomaly detector.
Raises:
-
InvalidParameterException–A parameter is specified incorrectly.
-
OperationAbortedException–Multiple concurrent requests to update the same resource were in conflict.
-
ResourceNotFoundException–The specified resource does not exist.
-
ServiceUnavailableException–The service cannot complete the request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cloudwatch_logs/_services/cloud_watch_logs.py
7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 | |