Class: Dryad::Consul::HTTPHealthCheck
- Inherits:
-
HealthCheck
- Object
- HealthCheck
- Dryad::Consul::HTTPHealthCheck
- Defined in:
- lib/dryad/consul/health_check.rb
Instance Attribute Summary collapse
-
#http ⇒ Object
Returns the value of attribute http.
-
#interval ⇒ Object
Returns the value of attribute interval.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Attributes inherited from HealthCheck
#deregister_critical_service_after
Instance Method Summary collapse
-
#initialize(http, interval, timeout, deregister_critical_service_after) ⇒ HTTPHealthCheck
constructor
A new instance of HTTPHealthCheck.
Methods inherited from HealthCheck
Constructor Details
#initialize(http, interval, timeout, deregister_critical_service_after) ⇒ HTTPHealthCheck
Returns a new instance of HTTPHealthCheck.
30 31 32 33 34 35 |
# File 'lib/dryad/consul/health_check.rb', line 30 def initialize(http, interval, timeout, deregister_critical_service_after) super(deregister_critical_service_after) @http = http @interval = "#{interval}s" @timeout = "#{timeout}s" end |
Instance Attribute Details
#http ⇒ Object
Returns the value of attribute http.
28 29 30 |
# File 'lib/dryad/consul/health_check.rb', line 28 def http @http end |
#interval ⇒ Object
Returns the value of attribute interval.
28 29 30 |
# File 'lib/dryad/consul/health_check.rb', line 28 def interval @interval end |
#timeout ⇒ Object
Returns the value of attribute timeout.
28 29 30 |
# File 'lib/dryad/consul/health_check.rb', line 28 def timeout @timeout end |