2021-04-29 16:48:09 +08:00
|
|
|
package models
|
|
|
|
|
|
2022-03-21 21:39:36 +08:00
|
|
|
import "github.com/iwind/TeaGo/dbs"
|
|
|
|
|
|
2021-04-29 16:48:09 +08:00
|
|
|
// NodeValue 节点监控数据
|
|
|
|
|
type NodeValue struct {
|
2022-03-21 21:39:36 +08:00
|
|
|
Id uint64 `field:"id"` // ID
|
|
|
|
|
ClusterId uint32 `field:"clusterId"` // 集群ID
|
|
|
|
|
NodeId uint32 `field:"nodeId"` // 节点ID
|
|
|
|
|
Role string `field:"role"` // 节点角色
|
|
|
|
|
Item string `field:"item"` // 监控项
|
|
|
|
|
Value dbs.JSON `field:"value"` // 数据
|
|
|
|
|
CreatedAt uint64 `field:"createdAt"` // 创建时间
|
|
|
|
|
Day string `field:"day"` // 日期
|
|
|
|
|
Hour string `field:"hour"` // 小时
|
|
|
|
|
Minute string `field:"minute"` // 分钟
|
2021-04-29 16:48:09 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type NodeValueOperator struct {
|
|
|
|
|
Id interface{} // ID
|
2021-07-05 11:37:22 +08:00
|
|
|
ClusterId interface{} // 集群ID
|
2021-04-29 16:48:09 +08:00
|
|
|
NodeId interface{} // 节点ID
|
|
|
|
|
Role interface{} // 节点角色
|
|
|
|
|
Item interface{} // 监控项
|
|
|
|
|
Value interface{} // 数据
|
|
|
|
|
CreatedAt interface{} // 创建时间
|
|
|
|
|
Day interface{} // 日期
|
|
|
|
|
Hour interface{} // 小时
|
|
|
|
|
Minute interface{} // 分钟
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func NewNodeValueOperator() *NodeValueOperator {
|
|
|
|
|
return &NodeValueOperator{}
|
|
|
|
|
}
|