Email notifications about failed webhooks

What is the best way to implement the email notifications about failed webhooks in jira cloud, since jira doesn’t support yet a logging for the failed webhooks? It would be also great to get notification about subsequent success of failed webhook and its complete failure (I guess after 72h webhook will stop retrying)