mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2026-02-08 06:05:37 +08:00
实现连通性变化发送通知功能
This commit is contained in:
@@ -4,5 +4,12 @@ package reporterconfigs
|
||||
|
||||
// GlobalSetting 全局设置
|
||||
type GlobalSetting struct {
|
||||
|
||||
MinNotifyConnectivity float64 `json:"minNotifyConnectivity"` // 需要通知的最小连通值
|
||||
NotifyWebHookURL string `json:"notifyWebHookURL"` // WebHook通知地址
|
||||
}
|
||||
|
||||
func DefaultGlobalSetting() *GlobalSetting {
|
||||
return &GlobalSetting{
|
||||
MinNotifyConnectivity: 100,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user