Exemplo n.º 1
0
 def __init__(self, config, generator):
     PeriodPoller.__init__(self, config, generator)
     # ProcessDetail class instance (main process plus subprocesses)
     self._dbProcessDetail = None
     # instance of Measurements
     self._measurements = None
     self._setUp()
Exemplo n.º 2
0
 def __init__(self, config, generator):
     PeriodPoller.__init__(self, config, generator)
     # ProcessDetail class instance (main process plus subprocesses)
     self._dbProcessDetail = None
     # instance of Measurements
     self._measurements = None
     self._setUp()
Exemplo n.º 3
0
 def __init__(self, config, generator):
     PeriodPoller.__init__(self, config, generator)
     # access to the entire agent's configuration
     self.agentCompleteConfig = generator.config
     # list of instances of ProcessDetail class (processes (plus subprocesses)
     # that represent all (as read from the configuration) components of the agent
     self._components = []
     # list of instance of the Measurements class - measurements for 1 particular component
     self._compMeasurements = []
     self._setUp()
Exemplo n.º 4
0
 def __init__(self, config, generator):
     PeriodPoller.__init__(self, config, generator)
     # access to the entire agent's configuration
     self.agentCompleteConfig = generator.config
     # number of measurements (polling) before the values are evaluated
     # for possible alert sending (is set up in the _setUp method)
     self.numOfMeasurements = -1
     # list of instances of ProcessDetail class (processes (plus subprocesses)
     # that represent all (as read from the configuration) components of the agent
     self._components = []
     # list of instance of the Measurements class - measurements for 1 particular component
     self._compMeasurements = []
     self._setUp()
Exemplo n.º 5
0
 def __init__(self, config, generator):
     PeriodPoller.__init__(self, config, generator)
     numOfMeasurements = round(self.config.period / self.config.pollInterval, 0)
     self._measurements = Measurements(numOfMeasurements)