Class: Kubelink::MonitoringController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Kubelink::MonitoringController
- Defined in:
- app/controllers/kubelink/monitoring_controller.rb
Instance Method Summary collapse
Instance Method Details
#health ⇒ Object
3 4 5 6 7 8 9 |
# File 'app/controllers/kubelink/monitoring_controller.rb', line 3 def health if defined?(ActiveRecord) ActiveRecord::Base.connection.execute('SELECT 1') end render plain: "ok" end |
#status ⇒ Object
11 12 13 |
# File 'app/controllers/kubelink/monitoring_controller.rb', line 11 def status render plain: "ok" end |