Table of contents
Directory
Updated at 2020-03-20 16:00:22

@ tars / notify

Report business (framework) messages (alarms) to the TARS 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.

Chapter