Class: Healthier::HealthierController

Inherits:
ApplicationController show all
Includes:
ActionController::HttpAuthentication::Basic::ControllerMethods
Defined in:
app/controllers/healthier/healthier_controller.rb

Overview

Controller for performing health checks

Instance Method Summary collapse

Instance Method Details

#liveObject

NOTE: Just return 200



15
16
17
# File 'app/controllers/healthier/healthier_controller.rb', line 15

def live
  render json: Healthier::Doctor.up?
end

#pingObject



10
11
12
# File 'app/controllers/healthier/healthier_controller.rb', line 10

def ping
  render json: Healthier::Doctor.ping!
end

#readyObject



19
20
21
# File 'app/controllers/healthier/healthier_controller.rb', line 19

def ready
  render json: Healthier::Doctor.ping!
end