Class: HealthMonitor::HealthController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- HealthMonitor::HealthController
- Defined in:
- app/controllers/health_monitor/health_controller.rb
Instance Method Summary collapse
Instance Method Details
#check ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'app/controllers/health_monitor/health_controller.rb', line 13 def check @statuses = statuses @hide_footer = HealthMonitor.configuration. respond_to do |format| format.html format.json { render json: @statuses.to_json, status: @statuses[:status] } format.xml { render xml: @statuses.to_xml, status: @statuses[:status] } end end |