调整部分命名

This commit is contained in:
GoEdgeLab
2021-09-14 19:38:24 +08:00
parent 915e5ad032
commit 4e81815965

View File

@@ -88,16 +88,16 @@ func FindAllIPAddressThresholdItems() []maps.Map {
}
}
// NodeValueThresholdConfig 阈值列表
type NodeValueThresholdConfig struct {
// IPAddressThresholdConfig 阈值列表
type IPAddressThresholdConfig struct {
Id int64 `json:"id"`
Items []*NodeValueThresholdItemConfig `json:"items"`
Actions []*NodeValueThresholdActionConfig `json:"actions"`
Items []*IPAddressThresholdItemConfig `json:"items"`
Actions []*IPAddressThresholdActionConfig `json:"actions"`
}
// NodeValueThresholdItemConfig 阈值项目
type NodeValueThresholdItemConfig struct {
Item NodeValueItem `json:"item"`
// IPAddressThresholdItemConfig 阈值项目
type IPAddressThresholdItemConfig struct {
Item IPAddressThresholdItem `json:"item"`
Operator NodeValueOperator `json:"operator"`
Value float64 `json:"value"`
Duration int `json:"duration"`
@@ -105,7 +105,7 @@ type NodeValueThresholdItemConfig struct {
Options maps.Map `json:"options"` // 附加选项
}
type NodeValueThresholdActionConfig struct {
type IPAddressThresholdActionConfig struct {
Action string `json:"action"`
Options maps.Map `json:"options"`
}