Options
All
  • Public
  • Public/Protected
  • All
Menu
description

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:

Name Description
event.log.warn The event in which a warning log occured in the application.
event.log.error The event in which an error log occured in the application.
since

v0.5.0

Hierarchy

  • AlertNotifier

Index

Constructors

Properties

alertsConfig: AlertsConfig

The configuration object in which specifies the type of event, the notification transport and recipient(s) details.

access

private

var

{AlertsConfig}

notifier: Notifier

The Notifier strategy of this class. Depending on the transport method specified in the ReportsConfig this will be generated by the NotifierFactory.

access

private

var

{Notifier}

Methods

  • handleLogErrorEvent(event: AlertEvent): Promise<void>
  • handleLogWarnEvent(event: AlertEvent): Promise<void>

Generated using TypeDoc