class Consul::Event

Defined in:

consul/client/event.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 create_event(name : String, data : String, datacenter : String | Nil = nil, node : String | Nil = nil, service : String | Nil = nil, tag : String | Nil = nil) : Consul::Types::Event::Event #

create_event triggers a new user event


[View source]
def get_events(name : String | Nil = nil, node : String | Nil = nil, service : String | Nil = nil, tag : String | Nil = nil) : Array(Consul::Types::Event::Event) #

get_events returns the most recent events (up to 256) known by the agent


[View source]