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
8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 | |