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.
302 303 304 305 306 307 |
# File 'lib/agent_harness/configuration.rb', line 302 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.
300 301 302 |
# File 'lib/agent_harness/configuration.rb', line 300 def enabled @enabled end |
#failure_threshold ⇒ Object
Returns the value of attribute failure_threshold.
300 301 302 |
# File 'lib/agent_harness/configuration.rb', line 300 def failure_threshold @failure_threshold end |
#interval ⇒ Object
Returns the value of attribute interval.
300 301 302 |
# File 'lib/agent_harness/configuration.rb', line 300 def interval @interval end |
#timeout ⇒ Object
Returns the value of attribute timeout.
300 301 302 |
# File 'lib/agent_harness/configuration.rb', line 300 def timeout @timeout end |