节点日志可以通过日期、关键词、级别等筛选

This commit is contained in:
GoEdgeLab
2021-05-19 19:03:46 +08:00
parent 30529d161c
commit 84845aee48
3 changed files with 75 additions and 22 deletions

View File

@@ -1,6 +1,6 @@
package models
// 节点日志
// NodeLog 节点日志
type NodeLog struct {
Id uint64 `field:"id"` // ID
Role string `field:"role"` // 节点角色
@@ -10,6 +10,9 @@ type NodeLog struct {
Level string `field:"level"` // 级别
NodeId uint32 `field:"nodeId"` // 节点ID
Day string `field:"day"` // 日期
ServerId uint32 `field:"serverId"` // 服务ID
Hash string `field:"hash"` // 信息内容Hash
Count uint32 `field:"count"` // 重复次数
}
type NodeLogOperator struct {
@@ -21,6 +24,9 @@ type NodeLogOperator struct {
Level interface{} // 级别
NodeId interface{} // 节点ID
Day interface{} // 日期
ServerId interface{} // 服务ID
Hash interface{} // 信息内容Hash
Count interface{} // 重复次数
}
func NewNodeLogOperator() *NodeLogOperator {