I tried to disable the predefined "Metrics Collector - HBase Master CPU Utilization" alert with "id 8" using the following API request:
curl -H "X-Requested-By: ambari" -X DELETE "http://ambari-server:8080/api/v1/clusters/newcluster/alert_definitions/8" -u admin:admin
But it turned out I completely removed it. I cannot find alert in a list of alerts that are disabled.
Is there any way to recover it? And how to properly disable and not delete predefined alert over API?
The original alert definition can be found here:
This API doc has info on how to create:
Then, once you have re-created the alert, you can disable via API by performing a PUT with this payload: