Class: Healthier::HealthierController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Healthier::HealthierController
- Includes:
- ActionController::HttpAuthentication::Basic::ControllerMethods
- Defined in:
- app/controllers/healthier/healthier_controller.rb
Overview
Controller for performing health checks
Instance Method Summary collapse
-
#live ⇒ Object
NOTE: Just return 200.
- #ping ⇒ Object
- #ready ⇒ Object
Instance Method Details
#live ⇒ Object
NOTE: Just return 200
15 16 17 |
# File 'app/controllers/healthier/healthier_controller.rb', line 15 def live render json: Healthier::Doctor.up? end |
#ping ⇒ Object
10 11 12 |
# File 'app/controllers/healthier/healthier_controller.rb', line 10 def ping render json: Healthier::Doctor.ping! end |
#ready ⇒ Object
19 20 21 |
# File 'app/controllers/healthier/healthier_controller.rb', line 19 def ready render json: Healthier::Doctor.ping! end |