I am using alerts plugin to send a slack message when a alert is triggered. I would also like to receive a message when the alert state changes from acknowledge to completed. I was able to modify https://github.com/opendistro-for-elasticsearch/alerting-kibana-plugin source code to send custom message, however I am finding it difficult to find state change of alerts from acknowleged to complete.
I am checking the server file under alerting-kibana plugin, however I am unsure if I am checking at the right place. Could some one help me with it?