@ksfcore/notify
v0.0.1
Published
KSF 框架中用于业务的(告警)消息上报
Downloads
1
Readme
@ 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.