mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2026-04-24 06:35:19 +08:00
实现基础的IP地址阈值
This commit is contained in:
@@ -2,7 +2,9 @@
|
||||
|
||||
package nodeconfigs
|
||||
|
||||
import "encoding/json"
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// NodeValueItem 监控项
|
||||
type NodeValueItem = string
|
||||
@@ -306,12 +308,3 @@ func UnmarshalNodeValue(valueJSON []byte) string {
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
// NodeValueThresholdConfig 阈值
|
||||
type NodeValueThresholdConfig struct {
|
||||
Item NodeValueItem `json:"item"`
|
||||
Operator NodeValueOperator `json:"operator"`
|
||||
Value int64 `json:"value"`
|
||||
Duration int `json:"duration"`
|
||||
DurationUnit NodeValueDurationUnit `json:"durationUnit"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user