James M
2013-11-03 10:04:52 UTC
James M [http://community.zenoss.org/people/James] created the discussion
"How to get events Clear summary / Events notes using Zenoss API?"
To view the discussion, visit: http://community.zenoss.org/message/75156#75156
--------------------------------------------------------------
Hey
I'm using Zenoss API to get events list and noticed that even if the event is clear the summary remains the same,
So I have 2 questions:
*1. How to receive the "clear summary" using the API*
*2. How to receive the each event's notes / log (probably in dictionary - timestamp, user, note) using the API*
I'm using:
"
+Â Â Â def get_events(self, device=None, component=None, eventClass=None):+
+Â Â Â Â Â Â Â data = dict(start=0, limit=2000, dir='DESC', sort='lastTime')+
+Â Â Â Â Â Â Â if device: data['params']['device'] = device+
+Â Â Â Â Â Â Â if component: data['params']['component'] = component+
+Â Â Â Â Â Â Â if eventClass: data['params']['eventClass'] = eventClass+
+Â Â Â Â Â Â Â return self._router_request('EventsRouter', 'query', [data])['result']+
"
Any suggestions will be appreciated.
Thanks!
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/75156#75156]
Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
"How to get events Clear summary / Events notes using Zenoss API?"
To view the discussion, visit: http://community.zenoss.org/message/75156#75156
--------------------------------------------------------------
Hey
I'm using Zenoss API to get events list and noticed that even if the event is clear the summary remains the same,
So I have 2 questions:
*1. How to receive the "clear summary" using the API*
*2. How to receive the each event's notes / log (probably in dictionary - timestamp, user, note) using the API*
I'm using:
"
+Â Â Â def get_events(self, device=None, component=None, eventClass=None):+
+Â Â Â Â Â Â Â data = dict(start=0, limit=2000, dir='DESC', sort='lastTime')+
+Â Â Â Â Â Â Â if device: data['params']['device'] = device+
+Â Â Â Â Â Â Â if component: data['params']['component'] = component+
+Â Â Â Â Â Â Â if eventClass: data['params']['eventClass'] = eventClass+
+Â Â Â Â Â Â Â return self._router_request('EventsRouter', 'query', [data])['result']+
"
Any suggestions will be appreciated.
Thanks!
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/75156#75156]
Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]