Currently, when a user deletes an anomaly detection job used in alerting rules, it causes errors due to these rules referencing the deleted job. To mitigate this issue, we should prompt users to delete associated alerting rules, similar to the functionality of the "Delete annotations" toggle.
Note that the user can still delete a job with the Elasticsearch API call.
Currently, when a user deletes an anomaly detection job used in alerting rules, it causes errors due to these rules referencing the deleted job. To mitigate this issue, we should prompt users to delete associated alerting rules, similar to the functionality of the "Delete annotations" toggle.
Note that the user can still delete a job with the Elasticsearch API call.