mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-23 19:20:24 +08:00
调整部分命名
This commit is contained in:
@@ -88,16 +88,16 @@ func FindAllIPAddressThresholdItems() []maps.Map {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// NodeValueThresholdConfig 阈值列表
|
// IPAddressThresholdConfig 阈值列表
|
||||||
type NodeValueThresholdConfig struct {
|
type IPAddressThresholdConfig struct {
|
||||||
Id int64 `json:"id"`
|
Id int64 `json:"id"`
|
||||||
Items []*NodeValueThresholdItemConfig `json:"items"`
|
Items []*IPAddressThresholdItemConfig `json:"items"`
|
||||||
Actions []*NodeValueThresholdActionConfig `json:"actions"`
|
Actions []*IPAddressThresholdActionConfig `json:"actions"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NodeValueThresholdItemConfig 阈值项目
|
// IPAddressThresholdItemConfig 阈值项目
|
||||||
type NodeValueThresholdItemConfig struct {
|
type IPAddressThresholdItemConfig struct {
|
||||||
Item NodeValueItem `json:"item"`
|
Item IPAddressThresholdItem `json:"item"`
|
||||||
Operator NodeValueOperator `json:"operator"`
|
Operator NodeValueOperator `json:"operator"`
|
||||||
Value float64 `json:"value"`
|
Value float64 `json:"value"`
|
||||||
Duration int `json:"duration"`
|
Duration int `json:"duration"`
|
||||||
@@ -105,7 +105,7 @@ type NodeValueThresholdItemConfig struct {
|
|||||||
Options maps.Map `json:"options"` // 附加选项
|
Options maps.Map `json:"options"` // 附加选项
|
||||||
}
|
}
|
||||||
|
|
||||||
type NodeValueThresholdActionConfig struct {
|
type IPAddressThresholdActionConfig struct {
|
||||||
Action string `json:"action"`
|
Action string `json:"action"`
|
||||||
Options maps.Map `json:"options"`
|
Options maps.Map `json:"options"`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user