Module: Hinoki::Events
- Defined in:
- lib/hinoki/events.rb
Class Method Summary collapse
-
.all ⇒ Object
Lists all events.
-
.for_client(client) ⇒ Object
Returns events associated with the given client.
-
.resolve(client, check) ⇒ Object
Clears an event from Sensu.
Class Method Details
.all ⇒ Object
Lists all events
11 12 13 |
# File 'lib/hinoki/events.rb', line 11 def self.all return @conn.get('/events') end |
.for_client(client) ⇒ Object
Returns events associated with the given client
16 17 18 |
# File 'lib/hinoki/events.rb', line 16 def self.for_client(client) return @conn.get("/events/#{client}") end |
.resolve(client, check) ⇒ Object
Clears an event from Sensu
21 22 23 |
# File 'lib/hinoki/events.rb', line 21 def self.resolve(client, check) return @conn.delete("/events/#{client}/#{check}") end |