Class: NtqTools::MonitorsController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- NtqTools::MonitorsController
- Defined in:
- app/controllers/ntq_tools/monitors_controller.rb
Instance Method Summary collapse
Instance Method Details
#check ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'app/controllers/ntq_tools/monitors_controller.rb', line 7 def check @status, @services_status = NtqTools::Monitor.check respond_to do |format| format.json do render json: { status: @status, services_status: @services_status, container_version: ENV['CONTAINER_VERSION'] }, status: @status == :ok ? :ok : :service_unavailable end format.html do end end end |