mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-07 18:50:26 +08:00
25 lines
953 B
Go
25 lines
953 B
Go
package stats
|
|
|
|
// TrafficDailyStat 总的流量统计(按天)
|
|
type TrafficDailyStat struct {
|
|
Id uint64 `field:"id"` // ID
|
|
Day string `field:"day"` // YYYYMMDD
|
|
CachedBytes uint64 `field:"cachedBytes"` // 缓存流量
|
|
Bytes uint64 `field:"bytes"` // 流量字节
|
|
CountRequests uint64 `field:"countRequests"` // 请求数
|
|
CountCachedRequests uint64 `field:"countCachedRequests"` // 缓存请求数
|
|
}
|
|
|
|
type TrafficDailyStatOperator struct {
|
|
Id interface{} // ID
|
|
Day interface{} // YYYYMMDD
|
|
CachedBytes interface{} // 缓存流量
|
|
Bytes interface{} // 流量字节
|
|
CountRequests interface{} // 请求数
|
|
CountCachedRequests interface{} // 缓存请求数
|
|
}
|
|
|
|
func NewTrafficDailyStatOperator() *TrafficDailyStatOperator {
|
|
return &TrafficDailyStatOperator{}
|
|
}
|