Purple-Devs / health_check

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

jsonp for client side javascript dashboard #58

Open ianheggie opened 7 years ago

ianheggie commented 7 years ago

Anyone have comments on adding jsonp (triggered by callback=function_name param)? It would allow you to have a javascript driven client side dashboard, but I am not sure if anyone cares.

I am having a play, but setting Content-Type to application/javascript is proving messy (different ways to do it even just between 4.0, 4.1, 4.2 and 5.0 versions) - I am interested in feedback as to what others think - worth the effort or not? Will anyone use it?

The only scenario I can see that colourful html doesn't answer would be to have a dashboard that not only shows status but tries to give advice on how to remedy the problem and/or hide the servers that are working and only show the ones that are failing. Or someone that wants a status dashboard that is pretty for non technical clients.