update_log_anomaly_detector
async
¶
update_log_anomaly_detector(
anomaly_detector_arn: AnomalyDetectorArn,
enabled: Boolean,
*,
config_overrides: Optional[AsyncCloudWatchLogsClientConfig] = 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/async_cloud_watch_logs.py
8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 | |