class Consul::Event
- Consul::Event
- Consul::Transport
- Reference
- Object
Defined in:
consul/client/event.crInstance Method Summary
-
#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
-
#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
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 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
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