Skip to content

Commit

Permalink
Merge pull request #25 from ThomasRasmussen/master
Browse files Browse the repository at this point in the history
Add support for close events and add log messages
  • Loading branch information
bjmllr authored Feb 18, 2018
2 parents da28201 + 59ed337 commit 37b43ea
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.6.0
0.6.1
12 changes: 12 additions & 0 deletions lib/zenoss/jsonapi/events_router.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,19 @@ def query_events(uid=nil, opts = {})
events
end

# @param [Hash] data evids that should be closed
# @option data [Array] :evids Array of evids that is closed
def close_events(data = {})
json_request('EventsRouter', 'close', [data])
end

# @param [Hash] data data specifying event that should have a logmessage appended
# @option data [String] :evid evid that message should be appended to
# @option data [String] :message text that should be appended to the event log
def write_log(data= {})
json_request('EventsRouter','write_log', [data])
end

# @param [String] uid the uid to query events for. If this isn't specified
# the query may take a very long time
# @param [Hash] opts misc options to limit/filter events
Expand Down

0 comments on commit 37b43ea

Please sign in to comment.