@ksfks/alarm
v1.0.0
Published
ksfks alarm
Downloads
2
Readme
KSF-ALARM
基于 [ksfcore/logs]开发,符合 KSF 框架规范
安装
npm --registry http://xxxx install "@ksfks/alarm"
例子
邮件告警
var ksfAlarm = require("@ksfks/alarm");
ksfAlarm.KSF_ALARM("testTitle", "test-KSF_ALARM");
短信+邮件告警
var ksfAlarm = require("@ksfks/alarm");
ksfAlarm.KSF_ALARM_ERR("testTitle", "test-KSF_ALARM_ERR");
扩展邮件告警, 可以自定义默认字段 i:ip, a:业务,s:服务,t:时间
var ksfAlarm = require("@ksfks/alarm");
ksfAlarm.KSF_ALARM_EX("1.1.1.1", "App", "MyServer", "2023-03-01 15:06:33" ,"testtitle", "test-KSF_ALARM_EX");
扩展短信+邮件告警, 可以自定义默认字段 i:ip, a:业务,s:服务,t:时间
var ksfAlarm = require("@ksfks/alarm");
ksfAlarm.KSF_ALARM_ERR_EX("1.1.1.1", "App", "MyServer", "2023-03-01 15:06:33" ,"testtitle", "test-KSF_ALARM_ERR_EX");