My application has a ping url that returns a HTTP status of 200 if the application is working correctly. I'd like to add a watcher action using
http input that monitors this url and alerts me via email if anything other than 200 is returned. Is this possible with
I tried to check if the
ctx.payload is empty when the application is down but it looks like when the http url is unavailable, any condition defined on the watch is not executed? I set a repsonse and read timeout value of 5s. Also is there a way to look at the HTTP response code through the Watcher execution context? I wasn't able to find a way listed in the documentation.
I'm using X-Pack 5.0.0 alpha4 release