Class: NewRelicPing::HealthController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- NewRelicPing::HealthController
- Defined in:
- app/controllers/new_relic_ping/health_controller.rb
Instance Method Summary collapse
-
#health ⇒ Object
Run the configured monitoring blocks Set the response times (return values) as HTTP headers return either ok or error status (error sent only if the configured block raises an exception).
-
#ping ⇒ Object
Return an okay if the Application Server is alive.
Instance Method Details
#health ⇒ Object
Run the configured monitoring blocks Set the response times (return values) as HTTP headers return either ok or error status (error sent only if the configured block raises an exception)
14 15 16 |
# File 'app/controllers/new_relic_ping/health_controller.rb', line 14 def health send_response(*configuration.status_check) end |
#ping ⇒ Object
Return an okay if the Application Server is alive
7 8 9 |
# File 'app/controllers/new_relic_ping/health_controller.rb', line 7 def ping send_response(:ok) end |