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
7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 | |