parent
c040dffb5f
commit
070e5051c6
|
@ -29,7 +29,7 @@ type inter interface {
|
|||
[Alerting.CallPlugin]
|
||||
Enable = false
|
||||
PluginPath = "./etc/script/notify.so"
|
||||
# 注意此处caller必须在notify.so中作为变量暴露
|
||||
Caller = "n9eCaller"
|
||||
# 注意此处caller必须在notify.so中作为变量暴露,首字母必须大写才能暴露
|
||||
Caller = "N9eCaller"
|
||||
```
|
||||
|
||||
|
|
|
@ -37,8 +37,8 @@ func (n *N9EPlugin) Notify(bs []byte) {
|
|||
}
|
||||
}
|
||||
|
||||
// will be loaded for alertingCall
|
||||
var n9eCaller = N9EPlugin{
|
||||
// will be loaded for alertingCall , The first letter must be capitalized to be exported
|
||||
var N9eCaller = N9EPlugin{
|
||||
Name: "n9e",
|
||||
Description: "演示告警通过动态链接库方式通知",
|
||||
BuildAt: time.Now().Local().Format("2006/01/02 15:04:05"),
|
||||
|
|
|
@ -29,7 +29,7 @@ type inter interface {
|
|||
[Alerting.CallPlugin]
|
||||
Enable = false
|
||||
PluginPath = "./etc/script/notify.so"
|
||||
# 注意此处caller必须在notify.so中作为变量暴露
|
||||
Caller = "n9eCaller"
|
||||
# 注意此处caller必须在notify.so中作为变量暴露,首字母必须大写才能暴露
|
||||
Caller = "N9eCaller"
|
||||
```
|
||||
|
||||
|
|
|
@ -37,8 +37,8 @@ func (n *N9EPlugin) Notify(bs []byte) {
|
|||
}
|
||||
}
|
||||
|
||||
// will be loaded for alertingCall
|
||||
var n9eCaller = N9EPlugin{
|
||||
// will be loaded for alertingCall , The first letter must be capitalized to be exported
|
||||
var N9eCaller = N9EPlugin{
|
||||
Name: "n9e",
|
||||
Description: "演示告警通过动态链接库方式通知",
|
||||
BuildAt: time.Now().Local().Format("2006/01/02 15:04:05"),
|
||||
|
|
|
@ -85,7 +85,8 @@ ScriptPath = "./etc/script/notify.py"
|
|||
Enable = false
|
||||
# use a plugin via `go build -buildmode=plugin -o notify.so`
|
||||
PluginPath = "./etc/script/notify.so"
|
||||
Caller = "n9eCaller"
|
||||
# The first letter must be capitalized to be exported
|
||||
Caller = "N9eCaller"
|
||||
|
||||
[Alerting.RedisPub]
|
||||
Enable = false
|
||||
|
|
Loading…
Reference in New Issue