Class: AgentHarness::HealthCheckConfig
- Inherits:
-
Object
- Object
- AgentHarness::HealthCheckConfig
- Defined in:
- lib/agent_harness/configuration.rb
Overview
Health check configuration
Instance Attribute Summary collapse
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#failure_threshold ⇒ Object
Returns the value of attribute failure_threshold.
-
#interval ⇒ Object
Returns the value of attribute interval.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize ⇒ HealthCheckConfig
constructor
A new instance of HealthCheckConfig.
Constructor Details
#initialize ⇒ HealthCheckConfig
Returns a new instance of HealthCheckConfig.
226 227 228 229 230 231 |
# File 'lib/agent_harness/configuration.rb', line 226 def initialize @enabled = true @interval = 60 # 1 minute @failure_threshold = 3 @timeout = 5 # seconds per provider check end |
Instance Attribute Details
#enabled ⇒ Object
Returns the value of attribute enabled.
224 225 226 |
# File 'lib/agent_harness/configuration.rb', line 224 def enabled @enabled end |
#failure_threshold ⇒ Object
Returns the value of attribute failure_threshold.
224 225 226 |
# File 'lib/agent_harness/configuration.rb', line 224 def failure_threshold @failure_threshold end |
#interval ⇒ Object
Returns the value of attribute interval.
224 225 226 |
# File 'lib/agent_harness/configuration.rb', line 224 def interval @interval end |
#timeout ⇒ Object
Returns the value of attribute timeout.
224 225 226 |
# File 'lib/agent_harness/configuration.rb', line 224 def timeout @timeout end |