Package ZenHub :: Package services :: Module RRDImpl :: Class RRDImpl
[hide private]
[frames] | no frames]

Class RRDImpl

source code

Instance Methods [hide private]
 
__init__(self, dmd) source code
 
writeRRD(self, devId, compType, compId, dpName, value)
Write the given data to it's rrd file.
source code
 
getDefaultRRDCreateCommand(self, device) source code
 
getDeviceOrComponent(self, devId, compId, compType)
If a compId is given then try to return that component.
source code
 
checkThresholds(self, dev, dp, value)
Check the given value against any thresholds.
source code
Class Variables [hide private]
  LONG_RRD_TYPES = ['COUNTER', 'DERIVE']
Method Details [hide private]

writeRRD(self, devId, compType, compId, dpName, value)

source code 
Write the given data to it's rrd file. Also check any thresholds and send events if value is out of bounds.

getDeviceOrComponent(self, devId, compId, compType)

source code 
If a compId is given then try to return that component. If unable to find it or if compId is not specified then try to return the given device. If unable to find then return None.

checkThresholds(self, dev, dp, value)

source code 
Check the given value against any thresholds. Count the number of times a dp has exceeded a given threshold in self.counts. Send events as appropriate.