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 14 from Products.ZenHub.PBDaemon import translateError 1517 _cached_thresholdClasses = [] 18 19 @translateError3421 if not self._cached_thresholdClasses: 22 from Products.ZenModel.MinMaxThreshold import MinMaxThreshold 23 classes = [MinMaxThreshold] 24 for pack in self.dmd.ZenPackManager.packs(): 25 classes += pack.getThresholdClasses() 26 self._cached_thresholdClasses = map(lambda c: c.__module__, classes) 27 return self._cached_thresholdClasses28 29 30 @translateError32 from Products.ZenModel.BuiltInDS import BuiltInDS 33 return self.config.getThresholdInstances(BuiltInDS.sourcetype)
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Thu May 7 11:46:33 2009 | http://epydoc.sourceforge.net |