🚸 可以使指定服务器不参与服务监控

This commit is contained in:
naiba
2021-04-22 21:53:31 +08:00
parent 6f565ba022
commit 585cf538d0
10 changed files with 419 additions and 292 deletions

View File

@@ -191,11 +191,12 @@ func (ma *memberAPI) addOrEditServer(c *gin.Context) {
}
type monitorForm struct {
ID uint64
Name string
Target string
Type uint8
Notify string
ID uint64
Name string
Target string
Type uint8
Notify string
SkipServersRaw string
}
func (ma *memberAPI) addOrEditMonitor(c *gin.Context) {
@@ -207,6 +208,7 @@ func (ma *memberAPI) addOrEditMonitor(c *gin.Context) {
m.Target = mf.Target
m.Type = mf.Type
m.ID = mf.ID
m.SkipServersRaw = mf.SkipServersRaw
m.Notify = mf.Notify == "on"
}
if err == nil {