Files
EdgeAPI/internal/db/models/node_ip_address_threshold_model.go

31 lines
1.0 KiB
Go
Raw Permalink Normal View History

2021-09-12 20:21:42 +08:00
package models
import "github.com/iwind/TeaGo/dbs"
2021-09-12 20:21:42 +08:00
// NodeIPAddressThreshold IP地址阈值
type NodeIPAddressThreshold struct {
Id uint64 `field:"id"` // ID
AddressId uint64 `field:"addressId"` // IP地址ID
Items dbs.JSON `field:"items"` // 阈值条目
Actions dbs.JSON `field:"actions"` // 动作
NotifiedAt uint64 `field:"notifiedAt"` // 上次通知时间
2022-03-22 22:11:32 +08:00
IsMatched bool `field:"isMatched"` // 上次是否匹配
State uint8 `field:"state"` // 状态
Order uint32 `field:"order"` // 排序
2021-09-12 20:21:42 +08:00
}
type NodeIPAddressThresholdOperator struct {
Id interface{} // ID
AddressId interface{} // IP地址ID
Items interface{} // 阈值条目
Actions interface{} // 动作
NotifiedAt interface{} // 上次通知时间
2021-09-14 15:27:48 +08:00
IsMatched interface{} // 上次是否匹配
2021-09-12 20:21:42 +08:00
State interface{} // 状态
Order interface{} // 排序
}
func NewNodeIPAddressThresholdOperator() *NodeIPAddressThresholdOperator {
return &NodeIPAddressThresholdOperator{}
}