diff --git a/internal/db/models/plan_model.go b/internal/db/models/plan_model.go index 754ae12a..4f4a7c7d 100644 --- a/internal/db/models/plan_model.go +++ b/internal/db/models/plan_model.go @@ -3,70 +3,76 @@ package models import "github.com/iwind/TeaGo/dbs" const ( - PlanField_Id dbs.FieldName = "id" // ID - PlanField_IsOn dbs.FieldName = "isOn" // 是否启用 - PlanField_Name dbs.FieldName = "name" // 套餐名 - PlanField_ClusterId dbs.FieldName = "clusterId" // 集群ID - PlanField_TrafficLimit dbs.FieldName = "trafficLimit" // 流量限制 - PlanField_Features dbs.FieldName = "features" // 允许的功能 - PlanField_TrafficPrice dbs.FieldName = "trafficPrice" // 流量价格设定 - PlanField_BandwidthPrice dbs.FieldName = "bandwidthPrice" // 带宽价格 - PlanField_MonthlyPrice dbs.FieldName = "monthlyPrice" // 月付 - PlanField_SeasonallyPrice dbs.FieldName = "seasonallyPrice" // 季付 - PlanField_YearlyPrice dbs.FieldName = "yearlyPrice" // 年付 - PlanField_PriceType dbs.FieldName = "priceType" // 价格类型 - PlanField_Order dbs.FieldName = "order" // 排序 - PlanField_State dbs.FieldName = "state" // 状态 - PlanField_TotalServers dbs.FieldName = "totalServers" // 可以绑定的网站数量 - PlanField_TotalServerNamesPerServer dbs.FieldName = "totalServerNamesPerServer" // 每个网站可以绑定的域名数量 - PlanField_TotalServerNames dbs.FieldName = "totalServerNames" // 总域名数量 - PlanField_MonthlyRequests dbs.FieldName = "monthlyRequests" // 每月访问量额度 - PlanField_DailyRequests dbs.FieldName = "dailyRequests" // 每日访问量额度 + PlanField_Id dbs.FieldName = "id" // ID + PlanField_IsOn dbs.FieldName = "isOn" // 是否启用 + PlanField_Name dbs.FieldName = "name" // 套餐名 + PlanField_ClusterId dbs.FieldName = "clusterId" // 集群ID + PlanField_TrafficLimit dbs.FieldName = "trafficLimit" // 流量限制 + PlanField_Features dbs.FieldName = "features" // 允许的功能 + PlanField_TrafficPrice dbs.FieldName = "trafficPrice" // 流量价格设定 + PlanField_BandwidthPrice dbs.FieldName = "bandwidthPrice" // 带宽价格 + PlanField_MonthlyPrice dbs.FieldName = "monthlyPrice" // 月付 + PlanField_SeasonallyPrice dbs.FieldName = "seasonallyPrice" // 季付 + PlanField_YearlyPrice dbs.FieldName = "yearlyPrice" // 年付 + PlanField_PriceType dbs.FieldName = "priceType" // 价格类型 + PlanField_Order dbs.FieldName = "order" // 排序 + PlanField_State dbs.FieldName = "state" // 状态 + PlanField_TotalServers dbs.FieldName = "totalServers" // 可以绑定的网站数量 + PlanField_TotalServerNamesPerServer dbs.FieldName = "totalServerNamesPerServer" // 每个网站可以绑定的域名数量 + PlanField_TotalServerNames dbs.FieldName = "totalServerNames" // 总域名数量 + PlanField_MonthlyRequests dbs.FieldName = "monthlyRequests" // 每月访问量额度 + PlanField_DailyRequests dbs.FieldName = "dailyRequests" // 每日访问量额度 + PlanField_DailyWebsocketConnections dbs.FieldName = "dailyWebsocketConnections" // 每日Websocket连接数 + PlanField_MonthlyWebsocketConnections dbs.FieldName = "monthlyWebsocketConnections" // 每月Websocket连接数 ) // Plan 用户套餐 type Plan struct { - Id uint32 `field:"id"` // ID - IsOn bool `field:"isOn"` // 是否启用 - Name string `field:"name"` // 套餐名 - ClusterId uint32 `field:"clusterId"` // 集群ID - TrafficLimit dbs.JSON `field:"trafficLimit"` // 流量限制 - Features dbs.JSON `field:"features"` // 允许的功能 - TrafficPrice dbs.JSON `field:"trafficPrice"` // 流量价格设定 - BandwidthPrice dbs.JSON `field:"bandwidthPrice"` // 带宽价格 - MonthlyPrice float64 `field:"monthlyPrice"` // 月付 - SeasonallyPrice float64 `field:"seasonallyPrice"` // 季付 - YearlyPrice float64 `field:"yearlyPrice"` // 年付 - PriceType string `field:"priceType"` // 价格类型 - Order uint32 `field:"order"` // 排序 - State uint8 `field:"state"` // 状态 - TotalServers uint32 `field:"totalServers"` // 可以绑定的网站数量 - TotalServerNamesPerServer uint32 `field:"totalServerNamesPerServer"` // 每个网站可以绑定的域名数量 - TotalServerNames uint32 `field:"totalServerNames"` // 总域名数量 - MonthlyRequests uint64 `field:"monthlyRequests"` // 每月访问量额度 - DailyRequests uint64 `field:"dailyRequests"` // 每日访问量额度 + Id uint32 `field:"id"` // ID + IsOn bool `field:"isOn"` // 是否启用 + Name string `field:"name"` // 套餐名 + ClusterId uint32 `field:"clusterId"` // 集群ID + TrafficLimit dbs.JSON `field:"trafficLimit"` // 流量限制 + Features dbs.JSON `field:"features"` // 允许的功能 + TrafficPrice dbs.JSON `field:"trafficPrice"` // 流量价格设定 + BandwidthPrice dbs.JSON `field:"bandwidthPrice"` // 带宽价格 + MonthlyPrice float64 `field:"monthlyPrice"` // 月付 + SeasonallyPrice float64 `field:"seasonallyPrice"` // 季付 + YearlyPrice float64 `field:"yearlyPrice"` // 年付 + PriceType string `field:"priceType"` // 价格类型 + Order uint32 `field:"order"` // 排序 + State uint8 `field:"state"` // 状态 + TotalServers uint32 `field:"totalServers"` // 可以绑定的网站数量 + TotalServerNamesPerServer uint32 `field:"totalServerNamesPerServer"` // 每个网站可以绑定的域名数量 + TotalServerNames uint32 `field:"totalServerNames"` // 总域名数量 + MonthlyRequests uint64 `field:"monthlyRequests"` // 每月访问量额度 + DailyRequests uint64 `field:"dailyRequests"` // 每日访问量额度 + DailyWebsocketConnections uint64 `field:"dailyWebsocketConnections"` // 每日Websocket连接数 + MonthlyWebsocketConnections uint64 `field:"monthlyWebsocketConnections"` // 每月Websocket连接数 } type PlanOperator struct { - Id any // ID - IsOn any // 是否启用 - Name any // 套餐名 - ClusterId any // 集群ID - TrafficLimit any // 流量限制 - Features any // 允许的功能 - TrafficPrice any // 流量价格设定 - BandwidthPrice any // 带宽价格 - MonthlyPrice any // 月付 - SeasonallyPrice any // 季付 - YearlyPrice any // 年付 - PriceType any // 价格类型 - Order any // 排序 - State any // 状态 - TotalServers any // 可以绑定的网站数量 - TotalServerNamesPerServer any // 每个网站可以绑定的域名数量 - TotalServerNames any // 总域名数量 - MonthlyRequests any // 每月访问量额度 - DailyRequests any // 每日访问量额度 + Id any // ID + IsOn any // 是否启用 + Name any // 套餐名 + ClusterId any // 集群ID + TrafficLimit any // 流量限制 + Features any // 允许的功能 + TrafficPrice any // 流量价格设定 + BandwidthPrice any // 带宽价格 + MonthlyPrice any // 月付 + SeasonallyPrice any // 季付 + YearlyPrice any // 年付 + PriceType any // 价格类型 + Order any // 排序 + State any // 状态 + TotalServers any // 可以绑定的网站数量 + TotalServerNamesPerServer any // 每个网站可以绑定的域名数量 + TotalServerNames any // 总域名数量 + MonthlyRequests any // 每月访问量额度 + DailyRequests any // 每日访问量额度 + DailyWebsocketConnections any // 每日Websocket连接数 + MonthlyWebsocketConnections any // 每月Websocket连接数 } func NewPlanOperator() *PlanOperator { diff --git a/internal/db/models/user_plan_bandwidth_stat_dao.go b/internal/db/models/user_plan_bandwidth_stat_dao.go index 9d248f9c..7be97b33 100644 --- a/internal/db/models/user_plan_bandwidth_stat_dao.go +++ b/internal/db/models/user_plan_bandwidth_stat_dao.go @@ -59,7 +59,7 @@ func init() { // UpdateUserPlanBandwidth 写入数据 // 暂时不使用region区分 -func (this *UserPlanBandwidthStatDAO) UpdateUserPlanBandwidth(tx *dbs.Tx, userId int64, userPlanId int64, regionId int64, day string, timeAt string, bandwidthBytes int64, totalBytes int64, cachedBytes int64, attackBytes int64, countRequests int64, countCachedRequests int64, countAttackRequests int64) error { +func (this *UserPlanBandwidthStatDAO) UpdateUserPlanBandwidth(tx *dbs.Tx, userId int64, userPlanId int64, regionId int64, day string, timeAt string, bandwidthBytes int64, totalBytes int64, cachedBytes int64, attackBytes int64, countRequests int64, countCachedRequests int64, countAttackRequests int64, countWebsocketConnections int64) error { if userId <= 0 || userPlanId <= 0 { return nil } @@ -73,29 +73,32 @@ func (this *UserPlanBandwidthStatDAO) UpdateUserPlanBandwidth(tx *dbs.Tx, userId Param("countRequests", countRequests). Param("countCachedRequests", countCachedRequests). Param("countAttackRequests", countAttackRequests). + Param("countWebsocketConnections", countWebsocketConnections). InsertOrUpdateQuickly(maps.Map{ - "userId": userId, - "userPlanId": userPlanId, - "regionId": regionId, - "day": day, - "timeAt": timeAt, - "bytes": bandwidthBytes, - "totalBytes": totalBytes, - "avgBytes": totalBytes / 300, - "cachedBytes": cachedBytes, - "attackBytes": attackBytes, - "countRequests": countRequests, - "countCachedRequests": countCachedRequests, - "countAttackRequests": countAttackRequests, + "userId": userId, + "userPlanId": userPlanId, + "regionId": regionId, + "day": day, + "timeAt": timeAt, + "bytes": bandwidthBytes, + "totalBytes": totalBytes, + "avgBytes": totalBytes / 300, + "cachedBytes": cachedBytes, + "attackBytes": attackBytes, + "countRequests": countRequests, + "countCachedRequests": countCachedRequests, + "countAttackRequests": countAttackRequests, + "countWebsocketConnections": countWebsocketConnections, }, maps.Map{ - "bytes": dbs.SQL("bytes+:bytes"), - "avgBytes": dbs.SQL("(totalBytes+:totalBytes)/300"), // 因为生成SQL语句时会自动将avgBytes排在totalBytes之前,所以这里不用担心先后顺序的问题 - "totalBytes": dbs.SQL("totalBytes+:totalBytes"), - "cachedBytes": dbs.SQL("cachedBytes+:cachedBytes"), - "attackBytes": dbs.SQL("attackBytes+:attackBytes"), - "countRequests": dbs.SQL("countRequests+:countRequests"), - "countCachedRequests": dbs.SQL("countCachedRequests+:countCachedRequests"), - "countAttackRequests": dbs.SQL("countAttackRequests+:countAttackRequests"), + "bytes": dbs.SQL("bytes+:bytes"), + "avgBytes": dbs.SQL("(totalBytes+:totalBytes)/300"), // 因为生成SQL语句时会自动将avgBytes排在totalBytes之前,所以这里不用担心先后顺序的问题 + "totalBytes": dbs.SQL("totalBytes+:totalBytes"), + "cachedBytes": dbs.SQL("cachedBytes+:cachedBytes"), + "attackBytes": dbs.SQL("attackBytes+:attackBytes"), + "countRequests": dbs.SQL("countRequests+:countRequests"), + "countCachedRequests": dbs.SQL("countCachedRequests+:countCachedRequests"), + "countAttackRequests": dbs.SQL("countAttackRequests+:countAttackRequests"), + "countWebsocketConnections": dbs.SQL("countWebsocketConnections+:countWebsocketConnections"), }) } diff --git a/internal/db/models/user_plan_bandwidth_stat_model.go b/internal/db/models/user_plan_bandwidth_stat_model.go index d7dfa267..5475b032 100644 --- a/internal/db/models/user_plan_bandwidth_stat_model.go +++ b/internal/db/models/user_plan_bandwidth_stat_model.go @@ -3,55 +3,58 @@ package models import "github.com/iwind/TeaGo/dbs" const ( - UserPlanBandwidthStatField_Id dbs.FieldName = "id" // ID - UserPlanBandwidthStatField_UserId dbs.FieldName = "userId" // 用户ID - UserPlanBandwidthStatField_UserPlanId dbs.FieldName = "userPlanId" // 用户套餐ID - UserPlanBandwidthStatField_Day dbs.FieldName = "day" // 日期YYYYMMDD - UserPlanBandwidthStatField_TimeAt dbs.FieldName = "timeAt" // 时间点HHII - UserPlanBandwidthStatField_Bytes dbs.FieldName = "bytes" // 带宽 - UserPlanBandwidthStatField_RegionId dbs.FieldName = "regionId" // 区域ID - UserPlanBandwidthStatField_TotalBytes dbs.FieldName = "totalBytes" // 总流量 - UserPlanBandwidthStatField_AvgBytes dbs.FieldName = "avgBytes" // 平均流量 - UserPlanBandwidthStatField_CachedBytes dbs.FieldName = "cachedBytes" // 缓存的流量 - UserPlanBandwidthStatField_AttackBytes dbs.FieldName = "attackBytes" // 攻击流量 - UserPlanBandwidthStatField_CountRequests dbs.FieldName = "countRequests" // 请求数 - UserPlanBandwidthStatField_CountCachedRequests dbs.FieldName = "countCachedRequests" // 缓存的请求数 - UserPlanBandwidthStatField_CountAttackRequests dbs.FieldName = "countAttackRequests" // 攻击请求数 + UserPlanBandwidthStatField_Id dbs.FieldName = "id" // ID + UserPlanBandwidthStatField_UserId dbs.FieldName = "userId" // 用户ID + UserPlanBandwidthStatField_UserPlanId dbs.FieldName = "userPlanId" // 用户套餐ID + UserPlanBandwidthStatField_Day dbs.FieldName = "day" // 日期YYYYMMDD + UserPlanBandwidthStatField_TimeAt dbs.FieldName = "timeAt" // 时间点HHII + UserPlanBandwidthStatField_Bytes dbs.FieldName = "bytes" // 带宽 + UserPlanBandwidthStatField_RegionId dbs.FieldName = "regionId" // 区域ID + UserPlanBandwidthStatField_TotalBytes dbs.FieldName = "totalBytes" // 总流量 + UserPlanBandwidthStatField_AvgBytes dbs.FieldName = "avgBytes" // 平均流量 + UserPlanBandwidthStatField_CachedBytes dbs.FieldName = "cachedBytes" // 缓存的流量 + UserPlanBandwidthStatField_AttackBytes dbs.FieldName = "attackBytes" // 攻击流量 + UserPlanBandwidthStatField_CountRequests dbs.FieldName = "countRequests" // 请求数 + UserPlanBandwidthStatField_CountCachedRequests dbs.FieldName = "countCachedRequests" // 缓存的请求数 + UserPlanBandwidthStatField_CountAttackRequests dbs.FieldName = "countAttackRequests" // 攻击请求数 + UserPlanBandwidthStatField_CountWebsocketConnections dbs.FieldName = "countWebsocketConnections" // Websocket连接数 ) // UserPlanBandwidthStat 用户套餐带宽峰值 type UserPlanBandwidthStat struct { - Id uint64 `field:"id"` // ID - UserId uint64 `field:"userId"` // 用户ID - UserPlanId uint64 `field:"userPlanId"` // 用户套餐ID - Day string `field:"day"` // 日期YYYYMMDD - TimeAt string `field:"timeAt"` // 时间点HHII - Bytes uint64 `field:"bytes"` // 带宽 - RegionId uint32 `field:"regionId"` // 区域ID - TotalBytes uint64 `field:"totalBytes"` // 总流量 - AvgBytes uint64 `field:"avgBytes"` // 平均流量 - CachedBytes uint64 `field:"cachedBytes"` // 缓存的流量 - AttackBytes uint64 `field:"attackBytes"` // 攻击流量 - CountRequests uint64 `field:"countRequests"` // 请求数 - CountCachedRequests uint64 `field:"countCachedRequests"` // 缓存的请求数 - CountAttackRequests uint64 `field:"countAttackRequests"` // 攻击请求数 + Id uint64 `field:"id"` // ID + UserId uint64 `field:"userId"` // 用户ID + UserPlanId uint64 `field:"userPlanId"` // 用户套餐ID + Day string `field:"day"` // 日期YYYYMMDD + TimeAt string `field:"timeAt"` // 时间点HHII + Bytes uint64 `field:"bytes"` // 带宽 + RegionId uint32 `field:"regionId"` // 区域ID + TotalBytes uint64 `field:"totalBytes"` // 总流量 + AvgBytes uint64 `field:"avgBytes"` // 平均流量 + CachedBytes uint64 `field:"cachedBytes"` // 缓存的流量 + AttackBytes uint64 `field:"attackBytes"` // 攻击流量 + CountRequests uint64 `field:"countRequests"` // 请求数 + CountCachedRequests uint64 `field:"countCachedRequests"` // 缓存的请求数 + CountAttackRequests uint64 `field:"countAttackRequests"` // 攻击请求数 + CountWebsocketConnections uint64 `field:"countWebsocketConnections"` // Websocket连接数 } type UserPlanBandwidthStatOperator struct { - Id any // ID - UserId any // 用户ID - UserPlanId any // 用户套餐ID - Day any // 日期YYYYMMDD - TimeAt any // 时间点HHII - Bytes any // 带宽 - RegionId any // 区域ID - TotalBytes any // 总流量 - AvgBytes any // 平均流量 - CachedBytes any // 缓存的流量 - AttackBytes any // 攻击流量 - CountRequests any // 请求数 - CountCachedRequests any // 缓存的请求数 - CountAttackRequests any // 攻击请求数 + Id any // ID + UserId any // 用户ID + UserPlanId any // 用户套餐ID + Day any // 日期YYYYMMDD + TimeAt any // 时间点HHII + Bytes any // 带宽 + RegionId any // 区域ID + TotalBytes any // 总流量 + AvgBytes any // 平均流量 + CachedBytes any // 缓存的流量 + AttackBytes any // 攻击流量 + CountRequests any // 请求数 + CountCachedRequests any // 缓存的请求数 + CountAttackRequests any // 攻击请求数 + CountWebsocketConnections any // Websocket连接数 } func NewUserPlanBandwidthStatOperator() *UserPlanBandwidthStatOperator { diff --git a/internal/db/models/user_plan_stat_dao_community.go b/internal/db/models/user_plan_stat_dao_community.go index be811b20..c50df458 100644 --- a/internal/db/models/user_plan_stat_dao_community.go +++ b/internal/db/models/user_plan_stat_dao_community.go @@ -5,6 +5,6 @@ package models import "github.com/iwind/TeaGo/dbs" -func (this *UserPlanStatDAO) IncreaseUserPlanStat(tx *dbs.Tx, userPlanId int64, trafficBytes int64, countRequests int64) error { +func (this *UserPlanStatDAO) IncreaseUserPlanStat(tx *dbs.Tx, userPlanId int64, trafficBytes int64, countRequests int64, countWebsocketConnections int64) error { return nil } diff --git a/internal/db/models/user_plan_stat_model.go b/internal/db/models/user_plan_stat_model.go index d7ae8bc3..a0206dd9 100644 --- a/internal/db/models/user_plan_stat_model.go +++ b/internal/db/models/user_plan_stat_model.go @@ -3,34 +3,37 @@ package models import "github.com/iwind/TeaGo/dbs" const ( - UserPlanStatField_Id dbs.FieldName = "id" // ID - UserPlanStatField_UserPlanId dbs.FieldName = "userPlanId" // 用户套餐ID - UserPlanStatField_Date dbs.FieldName = "date" // 日期:YYYYMMDD或YYYYMM - UserPlanStatField_DateType dbs.FieldName = "dateType" // 日期类型:day|month - UserPlanStatField_TrafficBytes dbs.FieldName = "trafficBytes" // 流量 - UserPlanStatField_CountRequests dbs.FieldName = "countRequests" // 总请求数 - UserPlanStatField_IsProcessed dbs.FieldName = "isProcessed" // 是否已处理 + UserPlanStatField_Id dbs.FieldName = "id" // ID + UserPlanStatField_UserPlanId dbs.FieldName = "userPlanId" // 用户套餐ID + UserPlanStatField_Date dbs.FieldName = "date" // 日期:YYYYMMDD或YYYYMM + UserPlanStatField_DateType dbs.FieldName = "dateType" // 日期类型:day|month + UserPlanStatField_TrafficBytes dbs.FieldName = "trafficBytes" // 流量 + UserPlanStatField_CountRequests dbs.FieldName = "countRequests" // 总请求数 + UserPlanStatField_CountWebsocketConnections dbs.FieldName = "countWebsocketConnections" // Websocket连接数 + UserPlanStatField_IsProcessed dbs.FieldName = "isProcessed" // 是否已处理 ) // UserPlanStat 用户套餐统计 type UserPlanStat struct { - Id uint64 `field:"id"` // ID - UserPlanId uint64 `field:"userPlanId"` // 用户套餐ID - Date string `field:"date"` // 日期:YYYYMMDD或YYYYMM - DateType string `field:"dateType"` // 日期类型:day|month - TrafficBytes uint64 `field:"trafficBytes"` // 流量 - CountRequests uint64 `field:"countRequests"` // 总请求数 - IsProcessed bool `field:"isProcessed"` // 是否已处理 + Id uint64 `field:"id"` // ID + UserPlanId uint64 `field:"userPlanId"` // 用户套餐ID + Date string `field:"date"` // 日期:YYYYMMDD或YYYYMM + DateType string `field:"dateType"` // 日期类型:day|month + TrafficBytes uint64 `field:"trafficBytes"` // 流量 + CountRequests uint64 `field:"countRequests"` // 总请求数 + CountWebsocketConnections uint64 `field:"countWebsocketConnections"` // Websocket连接数 + IsProcessed bool `field:"isProcessed"` // 是否已处理 } type UserPlanStatOperator struct { - Id any // ID - UserPlanId any // 用户套餐ID - Date any // 日期:YYYYMMDD或YYYYMM - DateType any // 日期类型:day|month - TrafficBytes any // 流量 - CountRequests any // 总请求数 - IsProcessed any // 是否已处理 + Id any // ID + UserPlanId any // 用户套餐ID + Date any // 日期:YYYYMMDD或YYYYMM + DateType any // 日期类型:day|month + TrafficBytes any // 流量 + CountRequests any // 总请求数 + CountWebsocketConnections any // Websocket连接数 + IsProcessed any // 是否已处理 } func NewUserPlanStatOperator() *UserPlanStatOperator { diff --git a/internal/rpc/services/service_server_bandwidth_stat.go b/internal/rpc/services/service_server_bandwidth_stat.go index 4b970179..89ef5b97 100644 --- a/internal/rpc/services/service_server_bandwidth_stat.go +++ b/internal/rpc/services/service_server_bandwidth_stat.go @@ -80,13 +80,13 @@ func init() { // 套餐统计 if stat.UserPlanId > 0 { // 总体统计 - err = models.SharedUserPlanStatDAO.IncreaseUserPlanStat(tx, stat.UserPlanId, stat.TotalBytes, stat.CountRequests) + err = models.SharedUserPlanStatDAO.IncreaseUserPlanStat(tx, stat.UserPlanId, stat.TotalBytes, stat.CountRequests, stat.CountWebsocketConnections) if err != nil { remotelogs.Error("ServerBandwidthStatService", "IncreaseUserPlanStat: "+err.Error()) } // 分时统计 - err = models.SharedUserPlanBandwidthStatDAO.UpdateUserPlanBandwidth(tx, stat.UserId, stat.UserPlanId, stat.NodeRegionId, stat.Day, stat.TimeAt, stat.Bytes, stat.TotalBytes, stat.CachedBytes, stat.AttackBytes, stat.CountRequests, stat.CountCachedRequests, stat.CountAttackRequests) + err = models.SharedUserPlanBandwidthStatDAO.UpdateUserPlanBandwidth(tx, stat.UserId, stat.UserPlanId, stat.NodeRegionId, stat.Day, stat.TimeAt, stat.Bytes, stat.TotalBytes, stat.CachedBytes, stat.AttackBytes, stat.CountRequests, stat.CountCachedRequests, stat.CountAttackRequests, stat.CountWebsocketConnections) } } @@ -146,22 +146,24 @@ func (this *ServerBandwidthStatService) UploadServerBandwidthStats(ctx context.C oldStat.CountRequests += stat.CountRequests oldStat.CountCachedRequests += stat.CountCachedRequests oldStat.CountAttackRequests += stat.CountAttackRequests + oldStat.CountWebsocketConnections += stat.CountWebsocketConnections } else { serverBandwidthStatsMap[key] = &pb.ServerBandwidthStat{ - Id: 0, - NodeRegionId: stat.NodeRegionId, - UserId: stat.UserId, - ServerId: stat.ServerId, - Day: stat.Day, - TimeAt: stat.TimeAt, - Bytes: stat.Bytes, - TotalBytes: stat.TotalBytes, - CachedBytes: stat.CachedBytes, - AttackBytes: stat.AttackBytes, - CountRequests: stat.CountRequests, - CountCachedRequests: stat.CountCachedRequests, - CountAttackRequests: stat.CountAttackRequests, - UserPlanId: stat.UserPlanId, + Id: 0, + NodeRegionId: stat.NodeRegionId, + UserId: stat.UserId, + ServerId: stat.ServerId, + Day: stat.Day, + TimeAt: stat.TimeAt, + Bytes: stat.Bytes, + TotalBytes: stat.TotalBytes, + CachedBytes: stat.CachedBytes, + AttackBytes: stat.AttackBytes, + CountRequests: stat.CountRequests, + CountCachedRequests: stat.CountCachedRequests, + CountAttackRequests: stat.CountAttackRequests, + CountWebsocketConnections: stat.CountWebsocketConnections, + UserPlanId: stat.UserPlanId, } } serverBandwidthStatsLocker.Unlock() diff --git a/internal/setup/sql.json b/internal/setup/sql.json index ff2dfce9..0358ee7a 100644 --- a/internal/setup/sql.json +++ b/internal/setup/sql.json @@ -111485,7 +111485,7 @@ "name": "edgePlans", "engine": "InnoDB", "charset": "utf8mb4_general_ci", - "definition": "CREATE TABLE `edgePlans` (\n `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `isOn` tinyint(1) unsigned DEFAULT '1' COMMENT '是否启用',\n `name` varchar(255) DEFAULT NULL COMMENT '套餐名',\n `clusterId` int(11) unsigned DEFAULT '0' COMMENT '集群ID',\n `trafficLimit` json DEFAULT NULL COMMENT '流量限制',\n `features` json DEFAULT NULL COMMENT '允许的功能',\n `trafficPrice` json DEFAULT NULL COMMENT '流量价格设定',\n `bandwidthPrice` json DEFAULT NULL COMMENT '带宽价格',\n `monthlyPrice` decimal(12,2) unsigned DEFAULT '0.00' COMMENT '月付',\n `seasonallyPrice` decimal(12,2) unsigned DEFAULT '0.00' COMMENT '季付',\n `yearlyPrice` decimal(12,2) unsigned DEFAULT '0.00' COMMENT '年付',\n `priceType` varchar(32) DEFAULT NULL COMMENT '价格类型',\n `order` int(11) unsigned DEFAULT '0' COMMENT '排序',\n `state` tinyint(1) unsigned DEFAULT '1' COMMENT '状态',\n `totalServers` int(11) unsigned DEFAULT '1' COMMENT '可以绑定的网站数量',\n `totalServerNamesPerServer` int(255) unsigned DEFAULT '0' COMMENT '每个网站可以绑定的域名数量',\n `totalServerNames` int(255) unsigned DEFAULT '0' COMMENT '总域名数量',\n `monthlyRequests` bigint(20) unsigned DEFAULT '0' COMMENT '每月访问量额度',\n `dailyRequests` bigint(20) unsigned DEFAULT '0' COMMENT '每日访问量额度',\n PRIMARY KEY (`id`),\n KEY `state` (`state`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐'", + "definition": "CREATE TABLE `edgePlans` (\n `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `isOn` tinyint(1) unsigned DEFAULT '1' COMMENT '是否启用',\n `name` varchar(255) DEFAULT NULL COMMENT '套餐名',\n `clusterId` int(11) unsigned DEFAULT '0' COMMENT '集群ID',\n `trafficLimit` json DEFAULT NULL COMMENT '流量限制',\n `features` json DEFAULT NULL COMMENT '允许的功能',\n `trafficPrice` json DEFAULT NULL COMMENT '流量价格设定',\n `bandwidthPrice` json DEFAULT NULL COMMENT '带宽价格',\n `monthlyPrice` decimal(12,2) unsigned DEFAULT '0.00' COMMENT '月付',\n `seasonallyPrice` decimal(12,2) unsigned DEFAULT '0.00' COMMENT '季付',\n `yearlyPrice` decimal(12,2) unsigned DEFAULT '0.00' COMMENT '年付',\n `priceType` varchar(32) DEFAULT NULL COMMENT '价格类型',\n `order` int(11) unsigned DEFAULT '0' COMMENT '排序',\n `state` tinyint(1) unsigned DEFAULT '1' COMMENT '状态',\n `totalServers` int(11) unsigned DEFAULT '1' COMMENT '可以绑定的网站数量',\n `totalServerNamesPerServer` int(255) unsigned DEFAULT '0' COMMENT '每个网站可以绑定的域名数量',\n `totalServerNames` int(255) unsigned DEFAULT '0' COMMENT '总域名数量',\n `monthlyRequests` bigint(20) unsigned DEFAULT '0' COMMENT '每月访问量额度',\n `dailyRequests` bigint(20) unsigned DEFAULT '0' COMMENT '每日访问量额度',\n `dailyWebsocketConnections` bigint(20) unsigned DEFAULT '0' COMMENT '每日Websocket连接数',\n `monthlyWebsocketConnections` bigint(20) unsigned DEFAULT '0' COMMENT '每月Websocket连接数',\n PRIMARY KEY (`id`),\n KEY `state` (`state`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐'", "fields": [ { "name": "id", @@ -111562,6 +111562,14 @@ { "name": "dailyRequests", "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '每日访问量额度'" + }, + { + "name": "dailyWebsocketConnections", + "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '每日Websocket连接数'" + }, + { + "name": "monthlyWebsocketConnections", + "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '每月Websocket连接数'" } ], "indexes": [ @@ -146093,7 +146101,7 @@ { "id": 391, "values": { - "codes": "[\"Slough\"]", + "codes": "[\"Slough\", \"斯劳\"]", "countryId": "69", "dataId": "", "id": "391", @@ -146133,7 +146141,7 @@ { "id": 393, "values": { - "codes": "[\"Nordrhein-Westfalen\"]", + "codes": "[\"Nordrhein-Westfalen\", \"北莱茵-威斯特法伦州\"]", "countryId": "65", "dataId": "", "id": "393", @@ -146153,7 +146161,7 @@ { "id": 394, "values": { - "codes": "[\"Palermo\"]", + "codes": "[\"Palermo\", \"巴勒莫\"]", "countryId": "85", "dataId": "", "id": "394", @@ -146253,7 +146261,7 @@ { "id": 399, "values": { - "codes": "[\"Manchester\"]", + "codes": "[\"Manchester\", \"曼彻斯特\"]", "countryId": "69", "dataId": "", "id": "399", @@ -146293,7 +146301,7 @@ { "id": 401, "values": { - "codes": "[\"Cork\"]", + "codes": "[\"Cork\", \"科克\"]", "countryId": "70", "dataId": "", "id": "401", @@ -146333,7 +146341,7 @@ { "id": 403, "values": { - "codes": "[\"Edinburgh\"]", + "codes": "[\"Edinburgh\", \"爱丁堡\"]", "countryId": "69", "dataId": "", "id": "403", @@ -146373,7 +146381,7 @@ { "id": 405, "values": { - "codes": "[\"Minas-Gerais\"]", + "codes": "[\"Minas-Gerais\", \"米纳斯吉拉斯州\", \"米纳斯吉拉斯\"]", "countryId": "209", "dataId": "", "id": "405", @@ -146393,7 +146401,7 @@ { "id": 406, "values": { - "codes": "[\"Rio-Grande-do-Sul\"]", + "codes": "[\"Rio-Grande-do-Sul\", \"南里奥格兰德州\", \"南里奥格兰德\"]", "countryId": "209", "dataId": "", "id": "406", @@ -146413,7 +146421,7 @@ { "id": 407, "values": { - "codes": "[\"Bashkortostan\"]", + "codes": "[\"Bashkortostan\", \"巴什科尔托斯坦共和国\"]", "countryId": "58", "dataId": "", "id": "407", @@ -146433,7 +146441,7 @@ { "id": 408, "values": { - "codes": "[\"Pescara\"]", + "codes": "[\"Pescara\", \"佩斯卡拉省\", \"佩斯卡拉\"]", "countryId": "85", "dataId": "", "id": "408", @@ -146453,7 +146461,7 @@ { "id": 409, "values": { - "codes": "[\"Ascoli-Piceno\"]", + "codes": "[\"Ascoli-Piceno\", \"阿斯科利皮切诺\"]", "countryId": "85", "dataId": "", "id": "409", @@ -146473,7 +146481,7 @@ { "id": 410, "values": { - "codes": "[\"Chieti\"]", + "codes": "[\"Chieti\", \"基耶蒂\"]", "countryId": "85", "dataId": "", "id": "410", @@ -146493,7 +146501,7 @@ { "id": 411, "values": { - "codes": "[\"Macerata\"]", + "codes": "[\"Macerata\", \"马切拉塔\"]", "countryId": "85", "dataId": "", "id": "411", @@ -146513,7 +146521,7 @@ { "id": 412, "values": { - "codes": "[\"Cagliari\"]", + "codes": "[\"Cagliari\", \"卡利亚里\"]", "countryId": "85", "dataId": "", "id": "412", @@ -146533,7 +146541,7 @@ { "id": 413, "values": { - "codes": "[\"Bari\"]", + "codes": "[\"Bari\", \"巴里市\", \"巴里\"]", "countryId": "85", "dataId": "", "id": "413", @@ -146553,7 +146561,7 @@ { "id": 414, "values": { - "codes": "[\"Catania\"]", + "codes": "[\"Catania\", \"卡塔尼亚\"]", "countryId": "85", "dataId": "", "id": "414", @@ -146573,7 +146581,7 @@ { "id": 415, "values": { - "codes": "[\"Messina\"]", + "codes": "[\"Messina\", \"墨西拿\"]", "countryId": "85", "dataId": "", "id": "415", @@ -146593,7 +146601,7 @@ { "id": 416, "values": { - "codes": "[\"Caltanissetta\"]", + "codes": "[\"Caltanissetta\", \"卡尔塔尼塞塔\"]", "countryId": "85", "dataId": "", "id": "416", @@ -146613,7 +146621,7 @@ { "id": 417, "values": { - "codes": "[\"Potenza\"]", + "codes": "[\"Potenza\", \"波坦察\"]", "countryId": "85", "dataId": "", "id": "417", @@ -146633,7 +146641,7 @@ { "id": 418, "values": { - "codes": "[\"Genova\"]", + "codes": "[\"Genova\", \"热那亚\"]", "countryId": "85", "dataId": "", "id": "418", @@ -146653,7 +146661,7 @@ { "id": 419, "values": { - "codes": "[\"Agrigento\"]", + "codes": "[\"Agrigento\", \"阿格里真托\"]", "countryId": "85", "dataId": "", "id": "419", @@ -146673,7 +146681,7 @@ { "id": 420, "values": { - "codes": "[\"Taranto\"]", + "codes": "[\"Taranto\", \"塔兰托\"]", "countryId": "85", "dataId": "", "id": "420", @@ -146693,7 +146701,7 @@ { "id": 421, "values": { - "codes": "[\"Cosenza\"]", + "codes": "[\"Cosenza\", \"科森扎\"]", "countryId": "85", "dataId": "", "id": "421", @@ -146713,7 +146721,7 @@ { "id": 422, "values": { - "codes": "[\"Lecce\"]", + "codes": "[\"Lecce\", \"莱切\"]", "countryId": "85", "dataId": "", "id": "422", @@ -146733,7 +146741,7 @@ { "id": 423, "values": { - "codes": "[\"Rimini\"]", + "codes": "[\"Rimini\", \"里米尼\"]", "countryId": "85", "dataId": "", "id": "423", @@ -146753,7 +146761,7 @@ { "id": 424, "values": { - "codes": "[\"Terni\"]", + "codes": "[\"Terni\", \"特尔尼\"]", "countryId": "85", "dataId": "", "id": "424", @@ -146773,7 +146781,7 @@ { "id": 425, "values": { - "codes": "[\"Pisa\"]", + "codes": "[\"Pisa\", \"比萨\"]", "countryId": "85", "dataId": "", "id": "425", @@ -146793,7 +146801,7 @@ { "id": 426, "values": { - "codes": "[\"Lucca\"]", + "codes": "[\"Lucca\", \"卢卡\"]", "countryId": "85", "dataId": "", "id": "426", @@ -146813,7 +146821,7 @@ { "id": 427, "values": { - "codes": "[\"Aosta\"]", + "codes": "[\"Aosta\", \"奥斯塔\"]", "countryId": "85", "dataId": "", "id": "427", @@ -146833,7 +146841,7 @@ { "id": 428, "values": { - "codes": "[\"Bergamo\"]", + "codes": "[\"Bergamo\", \"贝加莫\"]", "countryId": "85", "dataId": "", "id": "428", @@ -146853,7 +146861,7 @@ { "id": 429, "values": { - "codes": "[\"Trento\"]", + "codes": "[\"Trento\", \"特伦托\"]", "countryId": "85", "dataId": "", "id": "429", @@ -146873,7 +146881,7 @@ { "id": 430, "values": { - "codes": "[\"Parma\"]", + "codes": "[\"Parma\", \"帕尔马\"]", "countryId": "85", "dataId": "", "id": "430", @@ -146893,7 +146901,7 @@ { "id": 431, "values": { - "codes": "[\"Bologna\"]", + "codes": "[\"Bologna\", \"博洛尼亚\"]", "countryId": "85", "dataId": "", "id": "431", @@ -146913,7 +146921,7 @@ { "id": 432, "values": { - "codes": "[\"Vicenza\"]", + "codes": "[\"Vicenza\", \"维琴察市\", \"维琴察\"]", "countryId": "85", "dataId": "", "id": "432", @@ -146933,7 +146941,7 @@ { "id": 433, "values": { - "codes": "[\"Pavia\"]", + "codes": "[\"Pavia\", \"帕维亚\"]", "countryId": "85", "dataId": "", "id": "433", @@ -146953,7 +146961,7 @@ { "id": 434, "values": { - "codes": "[\"Lecco\"]", + "codes": "[\"Lecco\", \"莱科\"]", "countryId": "85", "dataId": "", "id": "434", @@ -146973,7 +146981,7 @@ { "id": 435, "values": { - "codes": "[\"Como\"]", + "codes": "[\"Como\", \"科莫\"]", "countryId": "85", "dataId": "", "id": "435", @@ -146993,7 +147001,7 @@ { "id": 436, "values": { - "codes": "[\"Varese\"]", + "codes": "[\"Varese\", \"瓦雷泽\"]", "countryId": "85", "dataId": "", "id": "436", @@ -147013,7 +147021,7 @@ { "id": 437, "values": { - "codes": "[\"Brescia\"]", + "codes": "[\"Brescia\", \"布雷西亚\"]", "countryId": "85", "dataId": "", "id": "437", @@ -147033,7 +147041,7 @@ { "id": 438, "values": { - "codes": "[\"Imperia\"]", + "codes": "[\"Imperia\", \"因佩里亚\"]", "countryId": "85", "dataId": "", "id": "438", @@ -147053,7 +147061,7 @@ { "id": 439, "values": { - "codes": "[\"Novara\"]", + "codes": "[\"Novara\", \"诺瓦拉\"]", "countryId": "85", "dataId": "", "id": "439", @@ -147073,7 +147081,7 @@ { "id": 440, "values": { - "codes": "[\"Teramo\"]", + "codes": "[\"Teramo\", \"泰拉莫\"]", "countryId": "85", "dataId": "", "id": "440", @@ -147093,7 +147101,7 @@ { "id": 441, "values": { - "codes": "[\"Prato\"]", + "codes": "[\"Prato\", \"普拉托\"]", "countryId": "85", "dataId": "", "id": "441", @@ -147113,7 +147121,7 @@ { "id": 442, "values": { - "codes": "[\"Ragusa\"]", + "codes": "[\"Ragusa\", \"拉古萨\"]", "countryId": "85", "dataId": "", "id": "442", @@ -147133,7 +147141,7 @@ { "id": 443, "values": { - "codes": "[\"Brindisi\"]", + "codes": "[\"Brindisi\", \"布林迪西\"]", "countryId": "85", "dataId": "", "id": "443", @@ -147153,7 +147161,7 @@ { "id": 444, "values": { - "codes": "[\"Salerno\"]", + "codes": "[\"Salerno\", \"萨勒诺\", \"萨莱诺\"]", "countryId": "85", "dataId": "", "id": "444", @@ -147173,7 +147181,7 @@ { "id": 445, "values": { - "codes": "[\"Napoli\"]", + "codes": "[\"Napoli\", \"那不勒斯\", \"纳波利\", \"拿坡里\", \"Naples\"]", "countryId": "85", "dataId": "", "id": "445", @@ -147193,7 +147201,7 @@ { "id": 446, "values": { - "codes": "[\"Crotone\"]", + "codes": "[\"Crotone\", \"克罗托内市\", \"克罗托内\"]", "countryId": "85", "dataId": "", "id": "446", @@ -147213,7 +147221,7 @@ { "id": 447, "values": { - "codes": "[\"Modena\"]", + "codes": "[\"Modena\", \"摩德纳\"]", "countryId": "85", "dataId": "", "id": "447", @@ -147233,7 +147241,7 @@ { "id": 448, "values": { - "codes": "[\"Reggio-Emilia\"]", + "codes": "[\"Reggio-Emilia\", \"雷焦艾米利亚\"]", "countryId": "85", "dataId": "", "id": "448", @@ -147253,7 +147261,7 @@ { "id": 449, "values": { - "codes": "[\"Piacenza\"]", + "codes": "[\"Piacenza\", \"皮亚琴察市\", \"皮亚琴察\"]", "countryId": "85", "dataId": "", "id": "449", @@ -147273,7 +147281,7 @@ { "id": 450, "values": { - "codes": "[\"Alessandria\"]", + "codes": "[\"Alessandria\", \"亚历山德里亚\"]", "countryId": "85", "dataId": "", "id": "450", @@ -147293,7 +147301,7 @@ { "id": 451, "values": { - "codes": "[\"Ancona\"]", + "codes": "[\"Ancona\", \"安科纳\"]", "countryId": "85", "dataId": "", "id": "451", @@ -147313,7 +147321,7 @@ { "id": 452, "values": { - "codes": "[\"Verona\"]", + "codes": "[\"Verona\", \"维罗纳\"]", "countryId": "85", "dataId": "", "id": "452", @@ -147333,7 +147341,7 @@ { "id": 453, "values": { - "codes": "[\"Asti\"]", + "codes": "[\"Asti\", \"阿斯蒂\"]", "countryId": "85", "dataId": "", "id": "453", @@ -147353,7 +147361,7 @@ { "id": 454, "values": { - "codes": "[\"Pistoia\"]", + "codes": "[\"Pistoia\", \"皮斯托亚\"]", "countryId": "85", "dataId": "", "id": "454", @@ -147373,7 +147381,7 @@ { "id": 455, "values": { - "codes": "[\"Latina\"]", + "codes": "[\"Latina\", \"拉蒂纳省\", \"拉蒂纳\"]", "countryId": "85", "dataId": "", "id": "455", @@ -147393,7 +147401,7 @@ { "id": 456, "values": { - "codes": "[\"La-Spezia\"]", + "codes": "[\"La-Spezia\", \"拉斯佩齐亚\"]", "countryId": "85", "dataId": "", "id": "456", @@ -147413,7 +147421,7 @@ { "id": 457, "values": { - "codes": "[\"Arezzo\"]", + "codes": "[\"Arezzo\", \"阿雷佐市\", \"阿雷佐\"]", "countryId": "85", "dataId": "", "id": "457", @@ -147433,7 +147441,7 @@ { "id": 458, "values": { - "codes": "[\"Ravenna\"]", + "codes": "[\"Ravenna\", \"拉韦纳\", \"拉温拿\", \"拉文纳\", \"腊万纳\"]", "countryId": "85", "dataId": "", "id": "458", @@ -147453,7 +147461,7 @@ { "id": 459, "values": { - "codes": "[\"Siena\"]", + "codes": "[\"Siena\", \"锡耶纳\"]", "countryId": "85", "dataId": "", "id": "459", @@ -147473,7 +147481,7 @@ { "id": 460, "values": { - "codes": "[\"Cremona\"]", + "codes": "[\"Cremona\", \"克雷莫纳\"]", "countryId": "85", "dataId": "", "id": "460", @@ -147493,7 +147501,7 @@ { "id": 461, "values": { - "codes": "[\"Savona\"]", + "codes": "[\"Savona\", \"萨沃纳\"]", "countryId": "85", "dataId": "", "id": "461", @@ -147513,7 +147521,7 @@ { "id": 462, "values": { - "codes": "[\"Sassari\"]", + "codes": "[\"Sassari\", \"萨萨里\"]", "countryId": "85", "dataId": "", "id": "462", @@ -147533,7 +147541,7 @@ { "id": 463, "values": { - "codes": "[\"Campobasso\"]", + "codes": "[\"Campobasso\", \"坎波巴索\"]", "countryId": "85", "dataId": "", "id": "463", @@ -147553,7 +147561,7 @@ { "id": 464, "values": { - "codes": "[\"Caserta\"]", + "codes": "[\"Caserta\", \"卡塞塔\"]", "countryId": "85", "dataId": "", "id": "464", @@ -147573,7 +147581,7 @@ { "id": 465, "values": { - "codes": "[\"Cuneo\"]", + "codes": "[\"Cuneo\", \"库内奥\"]", "countryId": "85", "dataId": "", "id": "465", @@ -147593,7 +147601,7 @@ { "id": 466, "values": { - "codes": "[\"Biella\"]", + "codes": "[\"Biella\", \"比耶拉市\", \"比耶拉\"]", "countryId": "85", "dataId": "", "id": "466", @@ -147613,7 +147621,7 @@ { "id": 467, "values": { - "codes": "[\"Vercelli\"]", + "codes": "[\"Vercelli\", \"维切里\"]", "countryId": "85", "dataId": "", "id": "467", @@ -147633,7 +147641,7 @@ { "id": 468, "values": { - "codes": "[\"Treviso\"]", + "codes": "[\"Treviso\", \"特雷维索\"]", "countryId": "85", "dataId": "", "id": "468", @@ -147653,7 +147661,7 @@ { "id": 469, "values": { - "codes": "[\"Ferrara\"]", + "codes": "[\"Ferrara\", \"菲拉拉\", \"费拉拉\"]", "countryId": "85", "dataId": "", "id": "469", @@ -147673,7 +147681,7 @@ { "id": 470, "values": { - "codes": "[\"Belluno\"]", + "codes": "[\"Belluno\", \"贝卢诺\"]", "countryId": "85", "dataId": "", "id": "470", @@ -147693,7 +147701,7 @@ { "id": 471, "values": { - "codes": "[\"Bolzano\"]", + "codes": "[\"Bolzano\", \"博尔扎诺\"]", "countryId": "85", "dataId": "", "id": "471", @@ -147713,7 +147721,7 @@ { "id": 472, "values": { - "codes": "[\"Rovigo\"]", + "codes": "[\"Rovigo\", \"罗维戈\"]", "countryId": "85", "dataId": "", "id": "472", @@ -147733,7 +147741,7 @@ { "id": 473, "values": { - "codes": "[\"Fermo\"]", + "codes": "[\"Fermo\", \"费尔莫\"]", "countryId": "85", "dataId": "", "id": "473", @@ -147753,7 +147761,7 @@ { "id": 474, "values": { - "codes": "[\"Massa-Carrara\"]", + "codes": "[\"Massa-Carrara\", \"马萨-卡拉拉省\", \"马萨-卡拉拉\"]", "countryId": "85", "dataId": "", "id": "474", @@ -147773,7 +147781,7 @@ { "id": 475, "values": { - "codes": "[\"Grosseto\"]", + "codes": "[\"Grosseto\", \"格罗塞托省\", \"格罗塞托\"]", "countryId": "85", "dataId": "", "id": "475", @@ -147793,7 +147801,7 @@ { "id": 476, "values": { - "codes": "[\"Livorno\"]", + "codes": "[\"Livorno\", \"里窝那\"]", "countryId": "85", "dataId": "", "id": "476", @@ -147813,7 +147821,7 @@ { "id": 477, "values": { - "codes": "[\"Reggio-Calabria\"]", + "codes": "[\"Reggio-Calabria\", \"勒佐卡卡拉布里亚\", \"雷焦卡拉布里亚港\", \"雷焦卡拉布里亚\"]", "countryId": "85", "dataId": "", "id": "477", @@ -147833,7 +147841,7 @@ { "id": 478, "values": { - "codes": "[\"Avellino\"]", + "codes": "[\"Avellino\", \"阿韦利诺\"]", "countryId": "85", "dataId": "", "id": "478", @@ -147853,7 +147861,7 @@ { "id": 479, "values": { - "codes": "[\"Trapani\"]", + "codes": "[\"Trapani\", \"特拉帕尼\"]", "countryId": "85", "dataId": "", "id": "479", @@ -147873,7 +147881,7 @@ { "id": 480, "values": { - "codes": "[\"Perugia\"]", + "codes": "[\"Perugia\", \"佩鲁贾\"]", "countryId": "85", "dataId": "", "id": "480", @@ -147893,7 +147901,7 @@ { "id": 481, "values": { - "codes": "[\"Mantova\"]", + "codes": "[\"Mantova\", \"曼托瓦\"]", "countryId": "85", "dataId": "", "id": "481", @@ -147913,7 +147921,7 @@ { "id": 482, "values": { - "codes": "[\"Baden-Wurttemberg\"]", + "codes": "[\"Baden-Wurttemberg\", \"巴登-符腾堡州\", \"巴登-符腾堡\"]", "countryId": "65", "dataId": "", "id": "482", @@ -147933,7 +147941,7 @@ { "id": 483, "values": { - "codes": "[\"Pazardzhik\"]", + "codes": "[\"Pazardzhik\", \"帕扎尔吉克\"]", "countryId": "77", "dataId": "", "id": "483", @@ -147953,7 +147961,7 @@ { "id": 484, "values": { - "codes": "[\"Zug\"]", + "codes": "[\"Zug\", \"楚格\"]", "countryId": "67", "dataId": "", "id": "484", @@ -147973,7 +147981,7 @@ { "id": 485, "values": { - "codes": "[\"Toledo\"]", + "codes": "[\"Toledo\", \"托雷多\"]", "countryId": "89", "dataId": "", "id": "485", @@ -148013,7 +148021,7 @@ { "id": 487, "values": { - "codes": "[\"Bas-Rhin\"]", + "codes": "[\"Bas-Rhin\", \"下莱茵省\", \"下莱茵\"]", "countryId": "74", "dataId": "", "id": "487", @@ -148093,7 +148101,7 @@ { "id": 491, "values": { - "codes": "[\"Territoire-de-Belfort\"]", + "codes": "[\"Territoire-de-Belfort\", \"贝尔福地区\", \"贝尔福\"]", "countryId": "74", "dataId": "", "id": "491", @@ -148113,7 +148121,7 @@ { "id": 492, "values": { - "codes": "[\"Gelderland\"]", + "codes": "[\"Gelderland\", \"格尔德兰\", \"海尔德兰省\", \"海尔德兰\"]", "countryId": "71", "dataId": "", "id": "492", @@ -148153,7 +148161,7 @@ { "id": 494, "values": { - "codes": "[\"Pohjanmaa\"]", + "codes": "[\"Pohjanmaa\", \"波的尼亚低地\", \"博滕区\", \"博滕\"]", "countryId": "49", "dataId": "", "id": "494", @@ -148193,7 +148201,7 @@ { "id": 496, "values": { - "codes": "[\"Irkutskaya\"]", + "codes": "[\"Irkutskaya\", \"伊尔库茨克州\", \"伊尔库茨克\"]", "countryId": "58", "dataId": "", "id": "496", @@ -148213,7 +148221,7 @@ { "id": 497, "values": { - "codes": "[\"Nenetskiy\"]", + "codes": "[\"Nenetskiy\", \"涅涅茨\"]", "countryId": "58", "dataId": "", "id": "497", @@ -148233,7 +148241,7 @@ { "id": 498, "values": { - "codes": "[\"Schleswig-Holstein\"]", + "codes": "[\"Schleswig-Holstein\", \"石勒苏益格-荷尔斯泰因\"]", "countryId": "65", "dataId": "", "id": "498", @@ -148253,7 +148261,7 @@ { "id": 499, "values": { - "codes": "[\"Antalya\"]", + "codes": "[\"Antalya\", \"安塔利亚\"]", "countryId": "47", "dataId": "", "id": "499", @@ -148273,7 +148281,7 @@ { "id": 500, "values": { - "codes": "[\"Ankara\"]", + "codes": "[\"Ankara\", \"安卡拉\"]", "countryId": "47", "dataId": "", "id": "500", @@ -148293,7 +148301,7 @@ { "id": 501, "values": { - "codes": "[\"Santa-Cruz-de-Tenerife\"]", + "codes": "[\"Santa-Cruz-de-Tenerife\", \"圣克鲁斯-德特内里费省\", \"圣克鲁斯-德特内里费\"]", "countryId": "89", "dataId": "", "id": "501", @@ -148313,7 +148321,7 @@ { "id": 502, "values": { - "codes": "[\"Ciudad-Real\"]", + "codes": "[\"Ciudad-Real\", \"雷阿尔城\", \"雷阿尔\"]", "countryId": "89", "dataId": "", "id": "502", @@ -148333,7 +148341,7 @@ { "id": 503, "values": { - "codes": "[\"Utrecht\"]", + "codes": "[\"Utrecht\", \"乌特勒支\"]", "countryId": "71", "dataId": "", "id": "503", @@ -148353,7 +148361,7 @@ { "id": 504, "values": { - "codes": "[\"Cambridgeshire\"]", + "codes": "[\"Cambridgeshire\", \"剑桥郡\", \"剑桥\"]", "countryId": "69", "dataId": "", "id": "504", @@ -148373,7 +148381,7 @@ { "id": 505, "values": { - "codes": "[\"Seine-et-Marne\"]", + "codes": "[\"Seine-et-Marne\", \"塞纳-马恩省\", \"塞纳-马恩\"]", "countryId": "74", "dataId": "", "id": "505", @@ -148413,7 +148421,7 @@ { "id": 507, "values": { - "codes": "[\"Saarland\"]", + "codes": "[\"Saarland\", \"萨尔兰州\", \"萨尔兰\", \"萨尔州\"]", "countryId": "65", "dataId": "", "id": "507", @@ -148433,7 +148441,7 @@ { "id": 508, "values": { - "codes": "[\"Kerry\"]", + "codes": "[\"Kerry\", \"凯里\", \"克里\"]", "countryId": "70", "dataId": "", "id": "508", @@ -148453,7 +148461,7 @@ { "id": 509, "values": { - "codes": "[\"Sevilla\"]", + "codes": "[\"Sevilla\", \"塞维利亚\"]", "countryId": "89", "dataId": "", "id": "509", @@ -148473,7 +148481,7 @@ { "id": 510, "values": { - "codes": "[\"Alicante\"]", + "codes": "[\"Alicante\", \"阿利坎特\"]", "countryId": "89", "dataId": "", "id": "510", @@ -148493,7 +148501,7 @@ { "id": 511, "values": { - "codes": "[\"Murcia\"]", + "codes": "[\"Murcia\", \"穆尔西亚\"]", "countryId": "89", "dataId": "", "id": "511", @@ -148513,7 +148521,7 @@ { "id": 512, "values": { - "codes": "[\"Bacs-Kiskun\"]", + "codes": "[\"Bacs-Kiskun\", \"巴奇-基什孔州\", \"巴奇-基什孔\"]", "countryId": "64", "dataId": "", "id": "512", @@ -148533,7 +148541,7 @@ { "id": 513, "values": { - "codes": "[\"Nizhegorodskaya\"]", + "codes": "[\"Nizhegorodskaya\", \"下诺夫哥罗德\", \"下诺夫哥罗德州\"]", "countryId": "58", "dataId": "", "id": "513", @@ -148553,7 +148561,7 @@ { "id": 514, "values": { - "codes": "[\"Tyumenskaya\"]", + "codes": "[\"Tyumenskaya\", \"秋明州\", \"秋明\"]", "countryId": "58", "dataId": "", "id": "514", @@ -148573,7 +148581,7 @@ { "id": 515, "values": { - "codes": "[\"Albacete\"]", + "codes": "[\"Albacete\", \"阿尔瓦塞特省\", \"阿尔瓦塞特\"]", "countryId": "89", "dataId": "", "id": "515", @@ -157693,7 +157701,7 @@ { "id": 971, "values": { - "codes": "[\"York\"]", + "codes": "[\"York\", \"约克\"]", "countryId": "69", "dataId": "", "id": "971", @@ -244029,7 +244037,7 @@ "name": "edgeUserPlanBandwidthStats", "engine": "InnoDB", "charset": "utf8mb4_general_ci", - "definition": "CREATE TABLE `edgeUserPlanBandwidthStats` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", + "definition": "CREATE TABLE `edgeUserPlanBandwidthStats` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n `countWebsocketConnections` bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", "fields": [ { "name": "id", @@ -244086,6 +244094,10 @@ { "name": "countAttackRequests", "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" + }, + { + "name": "countWebsocketConnections", + "definition": "bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数'" } ], "indexes": [ @@ -244104,7 +244116,7 @@ "name": "edgeUserPlanBandwidthStats_0", "engine": "InnoDB", "charset": "utf8mb4_general_ci", - "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_0` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", + "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_0` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n `countWebsocketConnections` bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", "fields": [ { "name": "id", @@ -244161,6 +244173,10 @@ { "name": "countAttackRequests", "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" + }, + { + "name": "countWebsocketConnections", + "definition": "bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数'" } ], "indexes": [ @@ -244179,7 +244195,7 @@ "name": "edgeUserPlanBandwidthStats_1", "engine": "InnoDB", "charset": "utf8mb4_general_ci", - "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_1` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", + "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_1` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n `countWebsocketConnections` bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", "fields": [ { "name": "id", @@ -244236,6 +244252,10 @@ { "name": "countAttackRequests", "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" + }, + { + "name": "countWebsocketConnections", + "definition": "bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数'" } ], "indexes": [ @@ -244254,7 +244274,7 @@ "name": "edgeUserPlanBandwidthStats_10", "engine": "InnoDB", "charset": "utf8mb4_general_ci", - "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_10` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", + "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_10` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n `countWebsocketConnections` bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", "fields": [ { "name": "id", @@ -244311,6 +244331,10 @@ { "name": "countAttackRequests", "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" + }, + { + "name": "countWebsocketConnections", + "definition": "bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数'" } ], "indexes": [ @@ -244329,7 +244353,7 @@ "name": "edgeUserPlanBandwidthStats_11", "engine": "InnoDB", "charset": "utf8mb4_general_ci", - "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_11` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", + "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_11` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n `countWebsocketConnections` bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", "fields": [ { "name": "id", @@ -244386,6 +244410,10 @@ { "name": "countAttackRequests", "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" + }, + { + "name": "countWebsocketConnections", + "definition": "bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数'" } ], "indexes": [ @@ -244404,7 +244432,7 @@ "name": "edgeUserPlanBandwidthStats_12", "engine": "InnoDB", "charset": "utf8mb4_general_ci", - "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_12` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", + "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_12` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n `countWebsocketConnections` bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", "fields": [ { "name": "id", @@ -244461,6 +244489,10 @@ { "name": "countAttackRequests", "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" + }, + { + "name": "countWebsocketConnections", + "definition": "bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数'" } ], "indexes": [ @@ -244479,7 +244511,7 @@ "name": "edgeUserPlanBandwidthStats_13", "engine": "InnoDB", "charset": "utf8mb4_general_ci", - "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_13` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", + "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_13` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n `countWebsocketConnections` bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", "fields": [ { "name": "id", @@ -244536,6 +244568,10 @@ { "name": "countAttackRequests", "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" + }, + { + "name": "countWebsocketConnections", + "definition": "bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数'" } ], "indexes": [ @@ -244554,7 +244590,7 @@ "name": "edgeUserPlanBandwidthStats_14", "engine": "InnoDB", "charset": "utf8mb4_general_ci", - "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_14` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", + "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_14` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n `countWebsocketConnections` bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", "fields": [ { "name": "id", @@ -244611,6 +244647,10 @@ { "name": "countAttackRequests", "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" + }, + { + "name": "countWebsocketConnections", + "definition": "bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数'" } ], "indexes": [ @@ -244629,7 +244669,7 @@ "name": "edgeUserPlanBandwidthStats_15", "engine": "InnoDB", "charset": "utf8mb4_general_ci", - "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_15` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", + "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_15` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n `countWebsocketConnections` bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", "fields": [ { "name": "id", @@ -244686,6 +244726,10 @@ { "name": "countAttackRequests", "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" + }, + { + "name": "countWebsocketConnections", + "definition": "bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数'" } ], "indexes": [ @@ -244704,7 +244748,7 @@ "name": "edgeUserPlanBandwidthStats_16", "engine": "InnoDB", "charset": "utf8mb4_general_ci", - "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_16` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", + "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_16` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n `countWebsocketConnections` bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", "fields": [ { "name": "id", @@ -244761,6 +244805,10 @@ { "name": "countAttackRequests", "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" + }, + { + "name": "countWebsocketConnections", + "definition": "bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数'" } ], "indexes": [ @@ -244779,7 +244827,7 @@ "name": "edgeUserPlanBandwidthStats_17", "engine": "InnoDB", "charset": "utf8mb4_general_ci", - "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_17` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", + "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_17` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n `countWebsocketConnections` bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", "fields": [ { "name": "id", @@ -244836,6 +244884,10 @@ { "name": "countAttackRequests", "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" + }, + { + "name": "countWebsocketConnections", + "definition": "bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数'" } ], "indexes": [ @@ -244854,7 +244906,7 @@ "name": "edgeUserPlanBandwidthStats_18", "engine": "InnoDB", "charset": "utf8mb4_general_ci", - "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_18` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", + "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_18` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n `countWebsocketConnections` bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", "fields": [ { "name": "id", @@ -244911,6 +244963,10 @@ { "name": "countAttackRequests", "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" + }, + { + "name": "countWebsocketConnections", + "definition": "bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数'" } ], "indexes": [ @@ -244929,7 +244985,7 @@ "name": "edgeUserPlanBandwidthStats_19", "engine": "InnoDB", "charset": "utf8mb4_general_ci", - "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_19` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", + "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_19` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n `countWebsocketConnections` bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", "fields": [ { "name": "id", @@ -244986,6 +245042,10 @@ { "name": "countAttackRequests", "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" + }, + { + "name": "countWebsocketConnections", + "definition": "bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数'" } ], "indexes": [ @@ -245004,7 +245064,7 @@ "name": "edgeUserPlanBandwidthStats_2", "engine": "InnoDB", "charset": "utf8mb4_general_ci", - "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_2` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", + "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_2` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n `countWebsocketConnections` bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", "fields": [ { "name": "id", @@ -245061,6 +245121,10 @@ { "name": "countAttackRequests", "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" + }, + { + "name": "countWebsocketConnections", + "definition": "bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数'" } ], "indexes": [ @@ -245079,7 +245143,7 @@ "name": "edgeUserPlanBandwidthStats_3", "engine": "InnoDB", "charset": "utf8mb4_general_ci", - "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_3` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", + "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_3` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n `countWebsocketConnections` bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", "fields": [ { "name": "id", @@ -245136,6 +245200,10 @@ { "name": "countAttackRequests", "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" + }, + { + "name": "countWebsocketConnections", + "definition": "bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数'" } ], "indexes": [ @@ -245154,7 +245222,7 @@ "name": "edgeUserPlanBandwidthStats_4", "engine": "InnoDB", "charset": "utf8mb4_general_ci", - "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_4` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", + "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_4` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n `countWebsocketConnections` bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", "fields": [ { "name": "id", @@ -245211,6 +245279,10 @@ { "name": "countAttackRequests", "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" + }, + { + "name": "countWebsocketConnections", + "definition": "bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数'" } ], "indexes": [ @@ -245229,7 +245301,7 @@ "name": "edgeUserPlanBandwidthStats_5", "engine": "InnoDB", "charset": "utf8mb4_general_ci", - "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_5` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", + "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_5` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n `countWebsocketConnections` bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", "fields": [ { "name": "id", @@ -245286,6 +245358,10 @@ { "name": "countAttackRequests", "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" + }, + { + "name": "countWebsocketConnections", + "definition": "bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数'" } ], "indexes": [ @@ -245304,7 +245380,7 @@ "name": "edgeUserPlanBandwidthStats_6", "engine": "InnoDB", "charset": "utf8mb4_general_ci", - "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_6` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", + "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_6` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n `countWebsocketConnections` bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", "fields": [ { "name": "id", @@ -245361,6 +245437,10 @@ { "name": "countAttackRequests", "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" + }, + { + "name": "countWebsocketConnections", + "definition": "bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数'" } ], "indexes": [ @@ -245379,7 +245459,7 @@ "name": "edgeUserPlanBandwidthStats_7", "engine": "InnoDB", "charset": "utf8mb4_general_ci", - "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_7` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", + "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_7` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n `countWebsocketConnections` bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", "fields": [ { "name": "id", @@ -245436,6 +245516,10 @@ { "name": "countAttackRequests", "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" + }, + { + "name": "countWebsocketConnections", + "definition": "bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数'" } ], "indexes": [ @@ -245454,7 +245538,7 @@ "name": "edgeUserPlanBandwidthStats_8", "engine": "InnoDB", "charset": "utf8mb4_general_ci", - "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_8` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", + "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_8` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n `countWebsocketConnections` bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", "fields": [ { "name": "id", @@ -245511,6 +245595,10 @@ { "name": "countAttackRequests", "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" + }, + { + "name": "countWebsocketConnections", + "definition": "bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数'" } ], "indexes": [ @@ -245529,7 +245617,7 @@ "name": "edgeUserPlanBandwidthStats_9", "engine": "InnoDB", "charset": "utf8mb4_general_ci", - "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_9` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", + "definition": "CREATE TABLE `edgeUserPlanBandwidthStats_9` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `userPlanId` bigint(20) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHII',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `avgBytes` bigint(20) unsigned DEFAULT '0' COMMENT '平均流量',\n `cachedBytes` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的流量',\n `attackBytes` bigint(20) unsigned DEFAULT '0' COMMENT '攻击流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '请求数',\n `countCachedRequests` bigint(20) unsigned DEFAULT '0' COMMENT '缓存的请求数',\n `countAttackRequests` bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数',\n `countWebsocketConnections` bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlan_day_time_region` (`userPlanId`,`day`,`timeAt`,`regionId`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐带宽峰值'", "fields": [ { "name": "id", @@ -245586,6 +245674,10 @@ { "name": "countAttackRequests", "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" + }, + { + "name": "countWebsocketConnections", + "definition": "bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数'" } ], "indexes": [ @@ -245604,7 +245696,7 @@ "name": "edgeUserPlanStats", "engine": "InnoDB", "charset": "utf8mb4_general_ci", - "definition": "CREATE TABLE `edgeUserPlanStats` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userPlanId` bigint(11) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `date` varchar(16) DEFAULT NULL COMMENT '日期:YYYYMMDD或YYYYMM',\n `dateType` varchar(16) DEFAULT NULL COMMENT '日期类型:day|month',\n `trafficBytes` bigint(20) unsigned DEFAULT '0' COMMENT '流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '总请求数',\n `isProcessed` tinyint(1) unsigned DEFAULT '0' COMMENT '是否已处理',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlanId_date_dateType` (`userPlanId`,`date`,`dateType`) USING BTREE,\n KEY `isProcessed` (`isProcessed`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐统计'", + "definition": "CREATE TABLE `edgeUserPlanStats` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userPlanId` bigint(11) unsigned DEFAULT '0' COMMENT '用户套餐ID',\n `date` varchar(16) DEFAULT NULL COMMENT '日期:YYYYMMDD或YYYYMM',\n `dateType` varchar(16) DEFAULT NULL COMMENT '日期类型:day|month',\n `trafficBytes` bigint(20) unsigned DEFAULT '0' COMMENT '流量',\n `countRequests` bigint(20) unsigned DEFAULT '0' COMMENT '总请求数',\n `countWebsocketConnections` bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数',\n `isProcessed` tinyint(1) unsigned DEFAULT '0' COMMENT '是否已处理',\n PRIMARY KEY (`id`),\n UNIQUE KEY `userPlanId_date_dateType` (`userPlanId`,`date`,`dateType`) USING BTREE,\n KEY `isProcessed` (`isProcessed`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐统计'", "fields": [ { "name": "id", @@ -245630,6 +245722,10 @@ "name": "countRequests", "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '总请求数'" }, + { + "name": "countWebsocketConnections", + "definition": "bigint(20) unsigned DEFAULT '0' COMMENT 'Websocket连接数'" + }, { "name": "isProcessed", "definition": "tinyint(1) unsigned DEFAULT '0' COMMENT '是否已处理'"