def __call__(self, alertData): """ Inject a new alert into the processing pipeline The alert data will be plain JSON & needs to be converted into an alert instance before being dispatched to the pipeline """ alert = Alert() alert.update(alertData) self.pipeline.send(alert)
def __call__(self, alertData): """ Inject a new alert into the processing pipeline The alert data will be plain JSON & needs to be converted into an alert instance before being dispatched to the pipeline """ logging.debug("Processing incoming Alert data to sinks ...") alert = Alert() alert.update(alertData) self.pipeline.send(alert) logging.debug("Incoming Alert data processing done.")