Class: HealthMonitor::HealthController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/health_monitor/health_controller.rb

Instance Method Summary collapse

Instance Method Details

#checkObject



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.hide_footer

  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