mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2026-05-03 04:45:18 +08:00
记录节点/集群的流量统计以备将来使用
This commit is contained in:
18
internal/db/models/stats/traffic_hourly_stat_model.go
Normal file
18
internal/db/models/stats/traffic_hourly_stat_model.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package stats
|
||||
|
||||
// 总的流量统计(按小时)
|
||||
type TrafficHourlyStat struct {
|
||||
Id uint64 `field:"id"` // ID
|
||||
Hour string `field:"hour"` // YYYYMMDDHH
|
||||
Bytes uint64 `field:"bytes"` // 流量字节
|
||||
}
|
||||
|
||||
type TrafficHourlyStatOperator struct {
|
||||
Id interface{} // ID
|
||||
Hour interface{} // YYYYMMDDHH
|
||||
Bytes interface{} // 流量字节
|
||||
}
|
||||
|
||||
func NewTrafficHourlyStatOperator() *TrafficHourlyStatOperator {
|
||||
return &TrafficHourlyStatOperator{}
|
||||
}
|
||||
Reference in New Issue
Block a user