class Consul::Health

Defined in:

consul/client/health.cr

Instance Method Summary

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::Response
put(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

def 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


[View source]
def 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


[View source]
def 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


[View source]
def 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. This will include both proxies and native integrations


[View source]
def 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


[View source]