Class: Dryad::Consul::HTTPHealthCheck

Inherits:
HealthCheck show all
Defined in:
lib/dryad/consul/health_check.rb

Instance Attribute Summary collapse

Attributes inherited from HealthCheck

#deregister_critical_service_after

Instance Method Summary collapse

Methods inherited from HealthCheck

#attributes

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

#httpObject

Returns the value of attribute http.



28
29
30
# File 'lib/dryad/consul/health_check.rb', line 28

def http
  @http
end

#intervalObject

Returns the value of attribute interval.



28
29
30
# File 'lib/dryad/consul/health_check.rb', line 28

def interval
  @interval
end

#timeoutObject

Returns the value of attribute timeout.



28
29
30
# File 'lib/dryad/consul/health_check.rb', line 28

def timeout
  @timeout
end