Webhook is not triggered when alert is cleared

Right now we have configured our Kibana to send an HTTP call towards BigPanda which collects all our alerts. This is working fine whenever an alert occurs.
Our trigger is configured with the following code :

for (int i = 0; i < ctx.results[0].hits.hits.length; i++) {
  if (ctx.results[0].hits.hits[i]._source.responseCode == 100) {
    return true;
  }
}
return false;

However when the alert is cleared there is no way how we can forward that “success” or clearance of the alert to our alert tool BigPanda.

A github issue is already raised for this problem : allow to trigger an action if monitor changes to green · Issue #28 · opendistro-for-elasticsearch/alerting · GitHub

1 Like

Closing this thread, refer to github issue discussion.