class Consul::Status
- Consul::Status
- Consul::Transport
- Reference
- Object
Defined in:
consul/client/status.crInstance Method Summary
-
#get_leader : String
get_leader returns the Raft leader for the datacenter in which the agent is running
-
#get_raft_peers(datacenter : String | Nil = nil) : Array(String)
get_raft_peers retrieves the Raft peers for the datacenter in which the the agent is running
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
def get_leader : String
#
get_leader returns the Raft leader for the datacenter in which the agent is running
def get_raft_peers(datacenter : String | Nil = nil) : Array(String)
#
get_raft_peers retrieves the Raft peers for the datacenter in which the the agent is running