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.
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 |
# File 'lib/agent_harness/configuration.rb', line 226 def initialize @enabled = true @interval = 60 # 1 minute @failure_threshold = 3 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 |