Monitor Alert Failures

Copper Contributor

I have a number of alert rules I've created that use a workspace function I've created. I've discovered if the function is deleted or changed in such a away that the alert query is no longer valid, the alert will not fire. Unfortunately, as far as I can tell, there is no way to know if a scheduled query alert failed to run because of this. I read that alerts should be disabled when they have an invalid query and reported in Azure Advisor, but that doesn't seem to be the case in this situation. There also doesn't appear to be anything in _LogOperation for this either. 

 

So, I need to either be able to write a query that can somehow test for a function and continue to run if it is not valid. Or a way to send an alert when another alert query is invalid or failed. Does anyone know if it is possible to do either of these things?

0 Replies