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

37 lines
1.5 KiB
Go
Raw Permalink Normal View History

package models
2021-09-06 08:12:48 +08:00
// ReportResult 连通性监控结果
type ReportResult struct {
Id uint64 `field:"id"` // ID
Type string `field:"type"` // 对象类型
2021-09-06 08:12:48 +08:00
TargetId uint64 `field:"targetId"` // 对象ID
TargetDesc string `field:"targetDesc"` // 对象描述
UpdatedAt uint64 `field:"updatedAt"` // 更新时间
ReportNodeId uint32 `field:"reportNodeId"` // 监控节点ID
2022-03-22 22:11:32 +08:00
IsOk bool `field:"isOk"` // 是否可连接
2021-09-08 19:34:31 +08:00
Level string `field:"level"` // 级别
CostMs float64 `field:"costMs"` // 单次连接花费的时间
Error string `field:"error"` // 产生的错误信息
2021-09-06 08:12:48 +08:00
CountUp uint32 `field:"countUp"` // 连续上线次数
CountDown uint32 `field:"countDown"` // 连续下线次数
}
2021-09-06 08:12:48 +08:00
type ReportResultOperator struct {
Id interface{} // ID
Type interface{} // 对象类型
TargetId interface{} // 对象ID
2021-09-06 08:12:48 +08:00
TargetDesc interface{} // 对象描述
UpdatedAt interface{} // 更新时间
ReportNodeId interface{} // 监控节点ID
IsOk interface{} // 是否可连接
2021-09-08 19:34:31 +08:00
Level interface{} // 级别
CostMs interface{} // 单次连接花费的时间
Error interface{} // 产生的错误信息
2021-09-06 08:12:48 +08:00
CountUp interface{} // 连续上线次数
CountDown interface{} // 连续下线次数
}
2021-09-06 08:12:48 +08:00
func NewReportResultOperator() *ReportResultOperator {
return &ReportResultOperator{}
}