Class: StandardHealth::Configuration::Registration
- Inherits:
-
Struct
- Object
- Struct
- StandardHealth::Configuration::Registration
- Defined in:
- lib/standard_health/configuration.rb
Overview
A registered health check entry.
timeout is per-check seconds, or nil to fall back to
default_check_timeout (itself nil by default — see below).
Instance Attribute Summary collapse
-
#critical ⇒ Object
Returns the value of attribute critical.
-
#klass ⇒ Object
Returns the value of attribute klass.
-
#name ⇒ Object
Returns the value of attribute name.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
Instance Attribute Details
#critical ⇒ Object
Returns the value of attribute critical
18 19 20 |
# File 'lib/standard_health/configuration.rb', line 18 def critical @critical end |
#klass ⇒ Object
Returns the value of attribute klass
18 19 20 |
# File 'lib/standard_health/configuration.rb', line 18 def klass @klass end |
#name ⇒ Object
Returns the value of attribute name
18 19 20 |
# File 'lib/standard_health/configuration.rb', line 18 def name @name end |
#timeout ⇒ Object
Returns the value of attribute timeout
18 19 20 |
# File 'lib/standard_health/configuration.rb', line 18 def timeout @timeout end |
Instance Method Details
#critical? ⇒ Boolean
19 20 21 |
# File 'lib/standard_health/configuration.rb', line 19 def critical? !!critical end |