Beispiel #1
0
 def __init__(self, cfg):
     super(SampleSource, self).__init__(cfg)
     try:
         self.meters = cfg['meters']
     except KeyError:
         raise base.PipelineException("Missing meters value", cfg)
     try:
         self.check_source_filtering(self.meters, 'meters')
     except agent.SourceException as err:
         raise base.PipelineException(err.msg, cfg)
Beispiel #2
0
 def __init__(self, cfg):
     super(EventSource, self).__init__(cfg)
     self.events = cfg.get('events')
     try:
         self.check_source_filtering(self.events, 'events')
     except agent.SourceException as err:
         raise base.PipelineException(err.msg, cfg)