Package Products :: Package ZenModel :: Module ThresholdInstance :: Class RRDThresholdInstance
[hide private]
[frames] | no frames]

Class RRDThresholdInstance

source code

  twisted.spread.pb.Copyable --+    
                               |    
twisted.spread.pb.RemoteCopy --+    
                               |    
               ThresholdInstance --+
                                   |
                                  RRDThresholdInstance
Known Subclasses:

Instance Methods [hide private]
 
__init__(self, id, context, dpNames, eventClass, severity) source code
 
name(self)
return the name of this threshold (from the ThresholdClass)
source code
 
context(self)
Return an identifying context (device, or device and component)
source code
 
dataPoints(self)
Returns the names of the datapoints used to compute the threshold
source code
 
check(self, dataPoints)
The given datapoints have been updated, so re-evaluate.
source code
 
checkRaw(self, dataPoint, timeOf, value)
A new datapoint has been collected, use the given _raw_ value to re-evalue the threshold.
source code
 
_getRRDType(self, dp)
get and cache rrd type inforomation
source code
 
_fetchLastValue(self, dp, cycleTime)
Fetch the most recent value for a data point from the RRD file.
source code
 
_checkImpl(self, dataPoint, value) source code

Inherited from ThresholdInstance: getGraphElements, key

Class Variables [hide private]

Inherited from ThresholdInstance: count

Method Details [hide private]

name(self)

source code 

return the name of this threshold (from the ThresholdClass)

Overrides: ThresholdInstance.name

context(self)

source code 

Return an identifying context (device, or device and component)

Overrides: ThresholdInstance.context

dataPoints(self)

source code 

Returns the names of the datapoints used to compute the threshold

Overrides: ThresholdInstance.dataPoints

check(self, dataPoints)

source code 

The given datapoints have been updated, so re-evaluate. returns events or an empty sequence

Overrides: ThresholdInstance.check

checkRaw(self, dataPoint, timeOf, value)

source code 

A new datapoint has been collected, use the given _raw_ value to re-evalue the threshold.

Overrides: ThresholdInstance.checkRaw