mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-23 05:08:13 -05:00
e8b8e59bd7
* feat: add network monitor hitory * fix: revert proto change and add indexStore * fix: update monitor delete unuse monitor history * fix: delete unuse monitor type --------- Co-authored-by: LvGJ <lvgj1998@gmail.com>
21 lines
332 B
Go
21 lines
332 B
Go
package model
|
|
|
|
const (
|
|
Cycle = iota
|
|
Hour
|
|
Day
|
|
Week
|
|
Month
|
|
)
|
|
|
|
// MonitorHistory 历史监控记录
|
|
type MonitorHistory struct {
|
|
Common
|
|
MonitorID uint64
|
|
ServerID uint64
|
|
AvgDelay float32 // 平均延迟,毫秒
|
|
Up uint64 // 检查状态良好计数
|
|
Down uint64 // 检查状态异常计数
|
|
Data string
|
|
}
|