Class: Imedo::MonitoringController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Imedo::MonitoringController
- Defined in:
- lib/app/controllers/imedo/monitoring_controller.rb
Instance Method Summary collapse
Instance Method Details
#monitor ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/app/controllers/imedo/monitoring_controller.rb', line 3 def monitor result = ActiveRecord::Base.connection.select_all("select 1 from dual") if result == [{"1" => "1"}] render :status => 200, :text => "OK" else render :status => 502, :text => "FAILED" end end |
#ping ⇒ Object
12 13 14 |
# File 'lib/app/controllers/imedo/monitoring_controller.rb', line 12 def ping render :text => 'pong' end |