Constructs and prepares an instance of this class.
The configuration object in which specifies the type of event, the notification transport and recipient(s) details.
The Notifier strategy of this class. Depending on the transport method specified in the ReportsConfig this will be generated by the NotifierFactory.
Main method to handle notifier.alerts.error
event.
Main method to handle notifier.alerts.warn
event.
Generated using TypeDoc
The alert notifier that will send a notification when a warn/error log occurs within the application's api and schedulers.
This class is in essential an event listener that listens to and handles warning/error events from the LogService.
When handling events, this class utilizes the Notifier strategy instance to send notification to specified recipient(s) using configured transport method as defined within AlertsConfig.
Currently this class listens and handles these events:
event.log.warn
event.log.error
v0.5.0