Package ZenRRD :: Module ThresholdManager :: Class Threshold
[show private | hide private]
[frames | no frames]

Class Threshold


Hold threshold config and send events based on the current value
Method Summary
  __init__(self, label, minimum, maximum, eventClass, severity, count)
  check(self, device, cname, oid, value, eventCb)
Check the value for min/max thresholds, and post events
  update(self, minimum, maximum, eventClass, severity, count)

Class Variable Summary
int count = 0                                                                     
int escalateCount = 0                                                                     
NoneType eventClass = None                                                                  
str label = ''
NoneType maximum = None                                                                  
NoneType minimum = None                                                                  
int severity = 2                                                                     

Method Details

check(self, device, cname, oid, value, eventCb)

Check the value for min/max thresholds, and post events

Class Variable Details

count

Type:
int
Value:
0                                                                     

escalateCount

Type:
int
Value:
0                                                                     

eventClass

Type:
NoneType
Value:
None                                                                  

label

Type:
str
Value:
''                                                                     

maximum

Type:
NoneType
Value:
None                                                                  

minimum

Type:
NoneType
Value:
None                                                                  

severity

Type:
int
Value:
2                                                                     

Generated by Epydoc 2.1 on Thu Aug 16 09:55:08 2007 http://epydoc.sf.net