class Consul::Health
- Consul::Health
- Consul::Transport
- Reference
- Object
Defined in:
consul/client/health.crInstance Method Summary
-
#get_checks_for_node(node : String, datacenter : String | Nil = nil, filter : String | Nil = nil) : Array(Consul::Types::Health::Check)
get_checks_for_node returns the checks specific to the node provided on the path
-
#get_checks_for_service(service : String, datacenter : String | Nil = nil, near : String | Nil = nil, node_meta : String | Nil = nil, filter : String | Nil = nil) : Array(Consul::Types::Health::Check)
get_checks_for_service returns the checks associated with the service provided on the path
-
#get_checks_in_state(state : String, datacenter : String | Nil = nil, near : String | Nil = nil, node_meta : String | Nil = nil, filter : String | Nil = nil) : Array(Consul::Types::Health::Check)
get_checks_in_state returns the checks in the state provided on the path
-
#get_connect_nodes(service : String) : Array(Consul::Types::Health::NodeService)
get_connect_nodes returns the nodes providing a Connect-capable service in a given datacenter.
-
#get_nodes_for_service(service : String, datacenter : String | Nil = nil, near : String | Nil = nil, tag : String | Nil = nil, node_meta : String | Nil = nil, passing : String | Nil = nil, filter : String | Nil = nil) : Array(Consul::Types::Health::NodeService)
get_nodes_for_service returns the nodes providing the service indicated on the path
Instance methods inherited from class Consul::Transport
client : HTTP::Client
client,
consistency : String
consistency,
delete(path : String) : HTTP::Client::Response
delete,
get(path : String) : HTTP::Client::Response
get,
get_consistency : String
get_consistency,
put(path : String, data : JSON::Any) : HTTP::Client::Responseput(path : String, data : String) : HTTP::Client::Response
put(path : String) : HTTP::Client::Response put
Constructor methods inherited from class Consul::Transport
new(client : HTTP::Client, consistency : String = "default")
new
Instance Method Detail
get_checks_for_node returns the checks specific to the node provided on the path
get_checks_for_service returns the checks associated with the service provided on the path
get_checks_in_state returns the checks in the state provided on the path
get_connect_nodes returns the nodes providing a Connect-capable service in a given datacenter. This will include both proxies and native integrations
get_nodes_for_service returns the nodes providing the service indicated on the path