Package ZenModel :: Module ThresholdClass :: Class ThresholdClass
[hide private]
[frames] | no frames]

Class ThresholdClass

source code

  Products.ZenModel.ZenModelRM.ZenModelRM --+
                                            |
Products.ZenModel.ZenPackable.ZenPackable --+
                                            |
                                           ThresholdClass

A ThresholdClass is a threshold description stored in a Template. The ThresholdClass will create ThresholdInstance objects when provided with a context, such as a device. Lists of ThresholdInstances will be sent to collectors for evaluation.

Instance Methods [hide private]
 
__init__(self, id, buildRelations=True) source code
 
getTypeName(self) source code
 
breadCrumbs(self, terminator='dmd')
Return the breadcrumb links for this object add ActionRules list.
source code
 
createThresholdInstance(self, context)
Return a sub-class of ThresholdInstance.
source code
 
canGraph(self, graph)
Returns true if instances of this ThresholdClass can be placed on a users' graph
source code
 
sync(self, eventManager, instances)
update instances with state from the event manager
source code
 
getSeverityString(self) source code
 
getDataPointNamesString(self)
Return a string that lists the datapoints used in this threshold.
source code
Class Variables [hide private]
  meta_type = 'ThresholdClass'
  security = ClassSecurityInfo()
  dsnames = []
  enabled = True
  _properties = {'id': 'dsnames', 'type': 'lines', 'mode': 'w'},...
  _relations = ZenPackable._relations+(("rrdTemplate", ToOne(ToM...
Method Details [hide private]

breadCrumbs(self, terminator='dmd')

source code 
Return the breadcrumb links for this object add ActionRules list. [('url','id'), ...]

createThresholdInstance(self, context)

source code 
Return a sub-class of ThresholdInstance. May raise a BadInstance exception if the type of the context does not match this type of threshold.

getDataPointNamesString(self)

source code 
Return a string that lists the datapoints used in this threshold. Indicate missing datapoints with (missing) after the name.

Class Variable Details [hide private]

_properties

Value:
{'id': 'dsnames', 'type': 'lines', 'mode': 'w'}, {'id': 'enabled', 'ty\
pe': 'boolean', 'mode': 'w'},

_relations

Value:
ZenPackable._relations+(("rrdTemplate", ToOne(ToManyCont, "Products.Ze\
nModel.RRDTemplate", "thresholds")),)