Trees | Indices | Help |
|
---|
|
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 from Products.ZenHub.services.ThresholdMixin import ThresholdMixin 22 from Products.ZenHub.PBDaemon import translateError25 266728 HubService.__init__(self, dmd, instance) 29 self.config = self.dmd.Monitors.Performance._getOb(self.instance) 30 self.methodPriorityMap = { 31 'sendEvent': 0.0, 32 'sendEvents': 0.0, 33 }34 35 @translateError37 try: 38 return self.zem.sendEvent(evt) 39 except Exception, ex: 40 import logging 41 log = logging.getLogger('log') 42 log.exception(ex)43 44 45 @translateError 48 49 50 @translateError 53 54 55 @translateError 58 59 60 @translateError 63 64 @translateError
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Jul 14 12:07:25 2010 | http://epydoc.sourceforge.net |