1
2
3
4
5
6
7
8
9
10
11 __doc__='''RRDService
12
13 Provides RRD services to zenhub clients.
14 '''
15
16 from HubService import HubService
17 from Products.ZenRRD.Thresholds import Thresholds
18 from RRDImpl import RRDImpl
19 import logging
20 log = logging.getLogger("zenhub")
21 from Products.ZenHub.PBDaemon import translateError
24
32
33
34 @translateError
36 '''Write the given data to its rrd file.
37 Also check any thresholds and send events if value is out of bounds.
38 '''
39
40 return self.rrdimpl.writeRRD(devId, compType, compId, dpName, value)
41