Class: HealthController

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

Overview

Provides a simple endpoint for monitoring server status

Constant Summary

Constants included from FlashTruncation

FlashTruncation::STRING_OVERHEAD

Instance Method Summary collapse

Methods inherited from ApplicationController

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

Methods included from FlashTruncation

#max_flash_size, #truncate_flash, #truncate_flash_array

Instance Method Details

#showObject



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

def show
  @monitor = Health.new

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