Class: HealthController

Inherits:
ApplicationController show all
Defined in:
app/controllers/health_controller.rb

Overview

Provides a simple endpoint for monitoring server status

Instance Method Summary collapse

Methods inherited from ApplicationController

#block_api_access, #clean_params_from_check, #evil_parameter_hack!, #extract_header_info, #set_cache_disabled!

Instance Method Details

#showObject


5
6
7
8
9
10
11
# File 'app/controllers/health_controller.rb', line 5

def show
  @monitor = Health.new

  respond_to do |format|
    format.json { render json: @monitor, status: @monitor.status }
  end
end