Module: Katalyst::Healthcheck::Monitored
- Included in:
- Actions::Sidekiq
- Defined in:
- lib/katalyst/healthcheck/monitored.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
-
#healthy!(name) ⇒ Object
Mark a task as healthy.
-
#unhealthy!(name, error = nil) ⇒ Object
Mark a task as unhealthy.
Class Method Details
.included(klass) ⇒ Object
6 7 8 |
# File 'lib/katalyst/healthcheck/monitored.rb', line 6 def self.included(klass) klass.extend(ClassMethods) end |
Instance Method Details
#healthy!(name) ⇒ Object
Mark a task as healthy
54 55 56 |
# File 'lib/katalyst/healthcheck/monitored.rb', line 54 def healthy!(name) self.class.healthy! name end |
#unhealthy!(name, error = nil) ⇒ Object
Mark a task as unhealthy
61 62 63 |
# File 'lib/katalyst/healthcheck/monitored.rb', line 61 def unhealthy!(name, error = nil) self.class.unhealthy! name, error end |