Class: Kubelink::MonitoringController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/kubelink/monitoring_controller.rb

Instance Method Summary collapse

Instance Method Details

#healthObject



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

#statusObject



11
12
13
# File 'app/controllers/kubelink/monitoring_controller.rb', line 11

def status
  render plain: "ok"
end