Class: Dryad::Consul::GRPCHealthCheck
- Inherits:
-
HealthCheck
- Object
- HealthCheck
- Dryad::Consul::GRPCHealthCheck
- Defined in:
- lib/dryad/consul/health_check.rb
Instance Attribute Summary collapse
-
#grpc ⇒ Object
Returns the value of attribute grpc.
-
#grpc_use_tls ⇒ Object
Returns the value of attribute grpc_use_tls.
-
#interval ⇒ Object
Returns the value of attribute interval.
Attributes inherited from HealthCheck
#deregister_critical_service_after
Instance Method Summary collapse
-
#initialize(grpc, interval, grpc_use_tls, deregister_critical_service_after) ⇒ GRPCHealthCheck
constructor
A new instance of GRPCHealthCheck.
Methods inherited from HealthCheck
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
#grpc ⇒ Object
Returns the value of attribute grpc.
39 40 41 |
# File 'lib/dryad/consul/health_check.rb', line 39 def grpc @grpc end |
#grpc_use_tls ⇒ Object
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 |
#interval ⇒ Object
Returns the value of attribute interval.
39 40 41 |
# File 'lib/dryad/consul/health_check.rb', line 39 def interval @interval end |