Skip to content

TARS 框架中用于业务的(告警)消息上报

Notifications You must be signed in to change notification settings

tars-node/notify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@ 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.

About

TARS 框架中用于业务的(告警)消息上报

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published