mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-12-16 07:46:35 +08:00
提供区域监控上报结果接口
This commit is contained in:
34
internal/db/models/report_result_model.go
Normal file
34
internal/db/models/report_result_model.go
Normal file
@@ -0,0 +1,34 @@
|
||||
package models
|
||||
|
||||
// ReportResult 连通性监控结果
|
||||
type ReportResult struct {
|
||||
Id uint64 `field:"id"` // ID
|
||||
Type string `field:"type"` // 对象类型
|
||||
TargetId uint64 `field:"targetId"` // 对象ID
|
||||
TargetDesc string `field:"targetDesc"` // 对象描述
|
||||
UpdatedAt uint64 `field:"updatedAt"` // 更新时间
|
||||
ReportNodeId uint32 `field:"reportNodeId"` // 监控节点ID
|
||||
IsOk uint8 `field:"isOk"` // 是否可连接
|
||||
CostMs float64 `field:"costMs"` // 单次连接花费的时间
|
||||
Error string `field:"error"` // 产生的错误信息
|
||||
CountUp uint32 `field:"countUp"` // 连续上线次数
|
||||
CountDown uint32 `field:"countDown"` // 连续下线次数
|
||||
}
|
||||
|
||||
type ReportResultOperator struct {
|
||||
Id interface{} // ID
|
||||
Type interface{} // 对象类型
|
||||
TargetId interface{} // 对象ID
|
||||
TargetDesc interface{} // 对象描述
|
||||
UpdatedAt interface{} // 更新时间
|
||||
ReportNodeId interface{} // 监控节点ID
|
||||
IsOk interface{} // 是否可连接
|
||||
CostMs interface{} // 单次连接花费的时间
|
||||
Error interface{} // 产生的错误信息
|
||||
CountUp interface{} // 连续上线次数
|
||||
CountDown interface{} // 连续下线次数
|
||||
}
|
||||
|
||||
func NewReportResultOperator() *ReportResultOperator {
|
||||
return &ReportResultOperator{}
|
||||
}
|
||||
Reference in New Issue
Block a user