def __init__(self, dmd, instance): HubService.__init__(self, dmd, instance) # rrd is a dictionary of RRDUtil instances self.rrd = {} self.thresholds = Thresholds() self.rrdimpl = RRDImpl(dmd)
class RRDService(HubService): def __init__(self, dmd, instance): HubService.__init__(self, dmd, instance) # rrd is a dictionary of RRDUtil instances self.rrd = {} self.thresholds = Thresholds() self.rrdimpl = RRDImpl(dmd) @translateError def remote_writeRRD(self, devId, compType, compId, dpName, value): '''Write the given data to its rrd file. Also check any thresholds and send events if value is out of bounds. ''' return self.rrdimpl.writeRRD(devId, compType, compId, dpName, value)