@xysfe/node-reporter
v1.0.0
Published
Tools for reporting errors to WeChat Work via node
Downloads
5
Readme
node-reporter
提供node服务向企业微信告警的能力
下载
npm i @xysfe/node-reporter
使用方式
const reporter = require('@xysfe/node-reporter')
reporter.alarm({
itilEventName: '',
projectName: '',
message: ''
})
告警消息示例
【itilEventName】【env】projectName message,当前值:1
alarm参数
| param | type | default | explain | | ---- | ---- | ---- | ---- | | itilEventName | string | '' | 告警配置 | | projectName | string | '' | 项目名 | | message | string | '' | 告警消息 |