Class: Dryad::Consul::GRPCHealthCheck

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(grpc, interval, grpc_use_tls, deregister_critical_service_after) ⇒ GRPCHealthCheck

Returns a new instance of GRPCHealthCheck.



41
42
43
44
45
46
# File 'lib/dryad/consul/health_check.rb', line 41

def initialize(grpc, interval, grpc_use_tls, deregister_critical_service_after)
  super(deregister_critical_service_after)
  @grpc = grpc
  @interval = "#{interval}s"
  @grpc_use_tls = grpc_use_tls
end

Instance Attribute Details

#grpcObject

Returns the value of attribute grpc.



39
40
41
# File 'lib/dryad/consul/health_check.rb', line 39

def grpc
  @grpc
end

#grpc_use_tlsObject

Returns the value of attribute grpc_use_tls.



39
40
41
# File 'lib/dryad/consul/health_check.rb', line 39

def grpc_use_tls
  @grpc_use_tls
end

#intervalObject

Returns the value of attribute interval.



39
40
41
# File 'lib/dryad/consul/health_check.rb', line 39

def interval
  @interval
end