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 23 24 25 |
# File 'app/controllers/health_monitor/health_controller.rb', line 13 def check @statuses = statuses respond_to do |format| format.html format.json do render json: statuses.to_json, status: statuses[:status] end format.xml do render xml: statuses.to_xml, status: statuses[:status] end end end |