Class: Cyclid::UI::Controllers::Health
- Defined in:
- app/cyclid_ui/controllers/health.rb
Overview
Controller for all Health related API endpoints
Instance Method Summary collapse
-
#initialize(_app) ⇒ Health
constructor
A new instance of Health.
Constructor Details
#initialize(_app) ⇒ Health
Returns a new instance of Health.
27 28 29 30 31 32 33 34 35 |
# File 'app/cyclid_ui/controllers/health.rb', line 27 def initialize(_app) super @checker = SinatraHealthCheck::Checker.new(logger: Cyclid.logger, timeout: 0) # Add internal health checks @checker.systems[:memcache] = Cyclid::UI::Health::Memcache @checker.systems[:api] = Cyclid::UI::Health::API end |