Package ZenHub :: Package services :: Module EventService
[hide private]
[frames] | no frames]

Source Code for Module ZenHub.services.EventService

 1  ########################################################################### 
 2  # 
 3  # This program is part of Zenoss Core, an open source monitoring platform. 
 4  # Copyright (C) 2007, Zenoss Inc. 
 5  # 
 6  # This program is free software; you can redistribute it and/or modify it 
 7  # under the terms of the GNU General Public License version 2 as published by 
 8  # the Free Software Foundation. 
 9  # 
10  # For complete information please visit: http://www.zenoss.com/oss/ 
11  # 
12  ########################################################################### 
13  #! /usr/bin/env python  
14   
15  from twisted.spread import pb 
16   
17  from Products.ZenEvents.Event import Event 
18  pb.setUnjellyableForClass(Event, Event) 
19   
20  from Products.ZenHub.HubService import HubService 
21   
22 -class EventService(HubService):
23
24 - def remote_sendEvent(self, evt):
25 try: 26 return self.zem.sendEvent(evt) 27 except Exception, ex: 28 import logging 29 log = logging.getLogger('log') 30 log.exception(ex)
31 32
33 - def remote_sendEvents(self, evts):
34 return self.zem.sendEvents(evts)
35 36
37 - def remote_getDevicePingIssues(self, *args, **kwargs):
38 return self.zem.getDevicePingIssues(*args, **kwargs)
39 40
41 - def remote_getDeviceIssues(self, *args, **kwargs):
42 return self.zem.getDeviceIssues(*args, **kwargs)
43 44
45 - def remote_getWmiConnIssues(self):
46 return self.zem.getWmiConnIssues()
47