Purple-Devs / health_check

Simple health check of Rails app for use with uptime checking sites like newrelic and pingdom
MIT License
476 stars 125 forks source link

Adding handler in case of failure #99

Closed mithucste30 closed 3 years ago

mithucste30 commented 4 years ago

Hi i am already using exception notification gem for sending exceptions from the app. Can I add that email sending block to to this gem in case when the health check fails?

ianheggie commented 3 years ago

Sounds a good idea, do you want to submit a Pull request with the suggested change?

ianheggie commented 3 years ago

I am in the process of adding on_failure and on_success callbacks

ianheggie commented 3 years ago

Provided in version 3.1.0 released just now