mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-12-30 18:08:05 +08:00
记录节点/集群的流量统计以备将来使用
This commit is contained in:
18
internal/db/models/stats/traffic_daily_stat_model.go
Normal file
18
internal/db/models/stats/traffic_daily_stat_model.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package stats
|
||||
|
||||
// 总的流量统计
|
||||
type TrafficDailyStat struct {
|
||||
Id uint64 `field:"id"` // ID
|
||||
Day string `field:"day"` // YYYYMMDD
|
||||
Bytes uint64 `field:"bytes"` // 流量字节
|
||||
}
|
||||
|
||||
type TrafficDailyStatOperator struct {
|
||||
Id interface{} // ID
|
||||
Day interface{} // YYYYMMDD
|
||||
Bytes interface{} // 流量字节
|
||||
}
|
||||
|
||||
func NewTrafficDailyStatOperator() *TrafficDailyStatOperator {
|
||||
return &TrafficDailyStatOperator{}
|
||||
}
|
||||
Reference in New Issue
Block a user