0.0.1 • Published 1 year ago

@ksfcore/notify v0.0.1

Weekly downloads
-
License
BSD-3-Clause
Repository
-
Last release
1 year ago

@ ksf / notify

Report business (framework) messages (alarms) to the KSF platform.

report (message , id)

Report the message to the platform and view it on the web management page.

  • message: message content (required)
  • id: service thread (process) ID, default value is process.pid

notify (message , level, id)

Report notification information to the platform.

  • message: notification content (required)
  • level: Level of notification content, LEVEL enumeration, The default value is LEVEL.NOTIFYNORMAL
  • id: service thread (process) ID, default value is process.pid

There are 3 options in the LEVEL enumeration:

  • LEVEL.NOTIFYNORMAL: Normal (default)
  • LEVEL.NOTIFYWARN: warning
  • LEVEL.NOTIFYERROR: error

The platform alerts the reported anomalies every 10 minutes.