Class: StatusController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- StatusController
- Defined in:
- app/controllers/status_controller.rb
Overview
Return the status of the server
Instance Method Summary collapse
-
#index ⇒ Object
Main (and only) page.
Instance Method Details
#index ⇒ Object
Main (and only) page
11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'app/controllers/status_controller.rb', line 11 def index components = { mongo: mongo_status, redis: redis_status, jobs: delayed_jobs_status, cron_job_servers: cron_job_servers_status, workers: workers_status } respond_to do |format| format.html { render :index, locals: { components: ui_decorators(components) }, layout: false } format.json { render json: components.to_json, status: db_status(components) } format.text { render plain: components.flatten, status: db_status(components) } end end |