2022-07-07 09:18:08 +08:00
|
|
|
package models
|
2022-07-05 20:08:58 +08:00
|
|
|
|
|
|
|
|
// ServerBandwidthStat 服务峰值带宽统计
|
|
|
|
|
type ServerBandwidthStat struct {
|
|
|
|
|
Id uint64 `field:"id"` // ID
|
2022-07-07 09:18:08 +08:00
|
|
|
UserId uint64 `field:"userId"` // 用户ID
|
2022-07-05 20:08:58 +08:00
|
|
|
ServerId uint64 `field:"serverId"` // 服务ID
|
|
|
|
|
Day string `field:"day"` // 日期YYYYMMDD
|
|
|
|
|
TimeAt string `field:"timeAt"` // 时间点HHMM
|
|
|
|
|
Bytes uint64 `field:"bytes"` // 带宽字节
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ServerBandwidthStatOperator struct {
|
|
|
|
|
Id interface{} // ID
|
2022-07-07 09:18:08 +08:00
|
|
|
UserId interface{} // 用户ID
|
2022-07-05 20:08:58 +08:00
|
|
|
ServerId interface{} // 服务ID
|
|
|
|
|
Day interface{} // 日期YYYYMMDD
|
|
|
|
|
TimeAt interface{} // 时间点HHMM
|
|
|
|
|
Bytes interface{} // 带宽字节
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func NewServerBandwidthStatOperator() *ServerBandwidthStatOperator {
|
|
|
|
|
return &ServerBandwidthStatOperator{}
|
|
|
|
|
}
|