Alert when watcher is in error state - .watcher_history

I am including kinda related topic I raised I cannot index "status.actions.my_webhook.last_execution.successful" in .watcher-history-* about unable to index a field.

To be honest all I want is programmatic method to alert if a watcher fails.