网站看板数据中增加当日独立IP和当日流量

This commit is contained in:
GoEdgeLab
2024-04-12 18:51:42 +08:00
parent 416cf4981d
commit 3b3763d35b
5 changed files with 128 additions and 24 deletions

View File

@@ -64,7 +64,7 @@ func init() {
// UpdateServerBandwidth 写入数据 // UpdateServerBandwidth 写入数据
// 现在不需要把 userPlanId 加入到数据表unique key中因为只会影响5分钟统计影响非常有限 // 现在不需要把 userPlanId 加入到数据表unique key中因为只会影响5分钟统计影响非常有限
func (this *ServerBandwidthStatDAO) UpdateServerBandwidth(tx *dbs.Tx, userId int64, serverId int64, regionId int64, userPlanId int64, day string, timeAt string, bandwidthBytes int64, totalBytes int64, cachedBytes int64, attackBytes int64, countRequests int64, countCachedRequests int64, countAttackRequests int64) error { func (this *ServerBandwidthStatDAO) UpdateServerBandwidth(tx *dbs.Tx, userId int64, serverId int64, regionId int64, userPlanId int64, day string, timeAt string, bandwidthBytes int64, totalBytes int64, cachedBytes int64, attackBytes int64, countRequests int64, countCachedRequests int64, countAttackRequests int64, countIPs int64) error {
if serverId <= 0 { if serverId <= 0 {
return errors.New("invalid server id '" + types.String(serverId) + "'") return errors.New("invalid server id '" + types.String(serverId) + "'")
} }
@@ -78,6 +78,7 @@ func (this *ServerBandwidthStatDAO) UpdateServerBandwidth(tx *dbs.Tx, userId int
Param("countRequests", countRequests). Param("countRequests", countRequests).
Param("countCachedRequests", countCachedRequests). Param("countCachedRequests", countCachedRequests).
Param("countAttackRequests", countAttackRequests). Param("countAttackRequests", countAttackRequests).
Param("countIPs", countIPs).
InsertOrUpdateQuickly(maps.Map{ InsertOrUpdateQuickly(maps.Map{
"userId": userId, "userId": userId,
"serverId": serverId, "serverId": serverId,
@@ -93,6 +94,7 @@ func (this *ServerBandwidthStatDAO) UpdateServerBandwidth(tx *dbs.Tx, userId int
"countCachedRequests": countCachedRequests, "countCachedRequests": countCachedRequests,
"countAttackRequests": countAttackRequests, "countAttackRequests": countAttackRequests,
"userPlanId": userPlanId, "userPlanId": userPlanId,
"countIPs": countIPs,
}, maps.Map{ }, maps.Map{
"bytes": dbs.SQL("bytes+:bytes"), "bytes": dbs.SQL("bytes+:bytes"),
"avgBytes": dbs.SQL("(totalBytes+:totalBytes)/300"), // 因为生成SQL语句时会自动将avgBytes排在totalBytes之前所以这里不用担心先后顺序的问题 "avgBytes": dbs.SQL("(totalBytes+:totalBytes)/300"), // 因为生成SQL语句时会自动将avgBytes排在totalBytes之前所以这里不用担心先后顺序的问题
@@ -102,6 +104,7 @@ func (this *ServerBandwidthStatDAO) UpdateServerBandwidth(tx *dbs.Tx, userId int
"countRequests": dbs.SQL("countRequests+:countRequests"), "countRequests": dbs.SQL("countRequests+:countRequests"),
"countCachedRequests": dbs.SQL("countCachedRequests+:countCachedRequests"), "countCachedRequests": dbs.SQL("countCachedRequests+:countCachedRequests"),
"countAttackRequests": dbs.SQL("countAttackRequests+:countAttackRequests"), "countAttackRequests": dbs.SQL("countAttackRequests+:countAttackRequests"),
"countIPs": dbs.SQL("countIPs+:countIPs"),
}) })
} }
@@ -726,7 +729,7 @@ func (this *ServerBandwidthStatDAO) SumDailyStat(tx *dbs.Tx, serverId int64, reg
var query = this.Query(tx). var query = this.Query(tx).
Table(this.partialTable(serverId)). Table(this.partialTable(serverId)).
Result("SUM(totalBytes) AS totalBytes, SUM(cachedBytes) AS cachedBytes, SUM(countRequests) AS countRequests, SUM(countCachedRequests) AS countCachedRequests, SUM(countAttackRequests) AS countAttackRequests, SUM(attackBytes) AS attackBytes") Result("SUM(totalBytes) AS totalBytes, SUM(cachedBytes) AS cachedBytes, SUM(countRequests) AS countRequests, SUM(countCachedRequests) AS countCachedRequests, SUM(countAttackRequests) AS countAttackRequests, SUM(attackBytes) AS attackBytes, SUM(countIPs) AS countIPs")
query.Attr("serverId", serverId) query.Attr("serverId", serverId)
@@ -755,6 +758,7 @@ func (this *ServerBandwidthStatDAO) SumDailyStat(tx *dbs.Tx, serverId int64, reg
stat.CountCachedRequests = one.GetInt64("countCachedRequests") stat.CountCachedRequests = one.GetInt64("countCachedRequests")
stat.CountAttackRequests = one.GetInt64("countAttackRequests") stat.CountAttackRequests = one.GetInt64("countAttackRequests")
stat.AttackBytes = one.GetInt64("attackBytes") stat.AttackBytes = one.GetInt64("attackBytes")
stat.CountIPs = one.GetInt64("countIPs")
return return
} }

View File

@@ -18,6 +18,7 @@ const (
ServerBandwidthStatField_CountCachedRequests dbs.FieldName = "countCachedRequests" // 缓存的请求数 ServerBandwidthStatField_CountCachedRequests dbs.FieldName = "countCachedRequests" // 缓存的请求数
ServerBandwidthStatField_CountAttackRequests dbs.FieldName = "countAttackRequests" // 攻击请求数 ServerBandwidthStatField_CountAttackRequests dbs.FieldName = "countAttackRequests" // 攻击请求数
ServerBandwidthStatField_TotalBytes dbs.FieldName = "totalBytes" // 总流量 ServerBandwidthStatField_TotalBytes dbs.FieldName = "totalBytes" // 总流量
ServerBandwidthStatField_CountIPs dbs.FieldName = "countIPs" // 独立IP
) )
// ServerBandwidthStat 服务峰值带宽统计 // ServerBandwidthStat 服务峰值带宽统计
@@ -37,6 +38,7 @@ type ServerBandwidthStat struct {
CountCachedRequests uint64 `field:"countCachedRequests"` // 缓存的请求数 CountCachedRequests uint64 `field:"countCachedRequests"` // 缓存的请求数
CountAttackRequests uint64 `field:"countAttackRequests"` // 攻击请求数 CountAttackRequests uint64 `field:"countAttackRequests"` // 攻击请求数
TotalBytes uint64 `field:"totalBytes"` // 总流量 TotalBytes uint64 `field:"totalBytes"` // 总流量
CountIPs uint64 `field:"countIPs"` // 独立IP
} }
type ServerBandwidthStatOperator struct { type ServerBandwidthStatOperator struct {
@@ -55,6 +57,7 @@ type ServerBandwidthStatOperator struct {
CountCachedRequests any // 缓存的请求数 CountCachedRequests any // 缓存的请求数
CountAttackRequests any // 攻击请求数 CountAttackRequests any // 攻击请求数
TotalBytes any // 总流量 TotalBytes any // 总流量
CountIPs any // 独立IP
} }
func NewServerBandwidthStatOperator() *ServerBandwidthStatOperator { func NewServerBandwidthStatOperator() *ServerBandwidthStatOperator {

View File

@@ -66,7 +66,7 @@ func init() {
// 更新网站的带宽峰值 // 更新网站的带宽峰值
if stat.ServerId > 0 { if stat.ServerId > 0 {
// 更新带宽统计 // 更新带宽统计
err = models.SharedServerBandwidthStatDAO.UpdateServerBandwidth(tx, stat.UserId, stat.ServerId, stat.NodeRegionId, stat.UserPlanId, stat.Day, stat.TimeAt, stat.Bytes, stat.TotalBytes, stat.CachedBytes, stat.AttackBytes, stat.CountRequests, stat.CountCachedRequests, stat.CountAttackRequests) err = models.SharedServerBandwidthStatDAO.UpdateServerBandwidth(tx, stat.UserId, stat.ServerId, stat.NodeRegionId, stat.UserPlanId, stat.Day, stat.TimeAt, stat.Bytes, stat.TotalBytes, stat.CachedBytes, stat.AttackBytes, stat.CountRequests, stat.CountCachedRequests, stat.CountAttackRequests, stat.CountIPs)
if err != nil { if err != nil {
remotelogs.Error("ServerBandwidthStatService", "dump bandwidth stats failed: "+err.Error()) remotelogs.Error("ServerBandwidthStatService", "dump bandwidth stats failed: "+err.Error())
} }
@@ -147,6 +147,7 @@ func (this *ServerBandwidthStatService) UploadServerBandwidthStats(ctx context.C
oldStat.CountCachedRequests += stat.CountCachedRequests oldStat.CountCachedRequests += stat.CountCachedRequests
oldStat.CountAttackRequests += stat.CountAttackRequests oldStat.CountAttackRequests += stat.CountAttackRequests
oldStat.CountWebsocketConnections += stat.CountWebsocketConnections oldStat.CountWebsocketConnections += stat.CountWebsocketConnections
oldStat.CountIPs += stat.CountIPs
} else { } else {
serverBandwidthStatsMap[key] = &pb.ServerBandwidthStat{ serverBandwidthStatsMap[key] = &pb.ServerBandwidthStat{
Id: 0, Id: 0,
@@ -164,6 +165,7 @@ func (this *ServerBandwidthStatService) UploadServerBandwidthStats(ctx context.C
CountAttackRequests: stat.CountAttackRequests, CountAttackRequests: stat.CountAttackRequests,
CountWebsocketConnections: stat.CountWebsocketConnections, CountWebsocketConnections: stat.CountWebsocketConnections,
UserPlanId: stat.UserPlanId, UserPlanId: stat.UserPlanId,
CountIPs: stat.CountIPs,
} }
} }
serverBandwidthStatsLocker.Unlock() serverBandwidthStatsLocker.Unlock()

View File

@@ -471,6 +471,17 @@ func (this *ServerStatBoardService) ComposeServerStatBoard(ctx context.Context,
} }
} }
// 当日统计
{
var day = timeutil.Format("Ymd")
stat, err := models.SharedServerBandwidthStatDAO.SumDailyStat(tx, req.ServerId, 0, day, day)
if err != nil {
return nil, err
}
result.DailyCountIPs = stat.CountIPs
result.DailyTrafficBytes = stat.Bytes
}
// 带宽统计 // 带宽统计
{ {
var month = timeutil.Format("Ym") var month = timeutil.Format("Ym")

View File

@@ -237603,7 +237603,7 @@
"name": "edgeServerBandwidthStats", "name": "edgeServerBandwidthStats",
"engine": "InnoDB", "engine": "InnoDB",
"charset": "utf8mb4_general_ci", "charset": "utf8mb4_general_ci",
"definition": "CREATE TABLE `edgeServerBandwidthStats` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `regionId` int(11) 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 '时间点HHMM',\n `bytes` 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 `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n PRIMARY KEY (`id`),\n UNIQUE KEY `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `userId` (`userId`),\n KEY `day` (`day`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'", "definition": "CREATE TABLE `edgeServerBandwidthStats` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `regionId` int(11) 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 '时间点HHMM',\n `bytes` 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 `totalBytes` bigint(20) unsigned DEFAULT '0' COMMENT '总流量',\n `countIPs` bigint(20) unsigned DEFAULT '0' COMMENT '独立IP',\n PRIMARY KEY (`id`),\n UNIQUE KEY `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `userId` (`userId`),\n KEY `day` (`day`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'",
"fields": [ "fields": [
{ {
"name": "id", "name": "id",
@@ -237664,6 +237664,10 @@
{ {
"name": "totalBytes", "name": "totalBytes",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '总流量'" "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '总流量'"
},
{
"name": "countIPs",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
} }
], ],
"indexes": [ "indexes": [
@@ -237690,7 +237694,7 @@
"name": "edgeServerBandwidthStats_0", "name": "edgeServerBandwidthStats_0",
"engine": "InnoDB", "engine": "InnoDB",
"charset": "utf8mb4_general_ci", "charset": "utf8mb4_general_ci",
"definition": "CREATE TABLE `edgeServerBandwidthStats_0` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'", "definition": "CREATE TABLE `edgeServerBandwidthStats_0` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `countIPs` bigint(20) unsigned DEFAULT '0' COMMENT '独立IP',\n PRIMARY KEY (`id`),\n UNIQUE KEY `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'",
"fields": [ "fields": [
{ {
"name": "id", "name": "id",
@@ -237751,6 +237755,10 @@
{ {
"name": "countAttackRequests", "name": "countAttackRequests",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
},
{
"name": "countIPs",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
} }
], ],
"indexes": [ "indexes": [
@@ -237777,7 +237785,7 @@
"name": "edgeServerBandwidthStats_1", "name": "edgeServerBandwidthStats_1",
"engine": "InnoDB", "engine": "InnoDB",
"charset": "utf8mb4_general_ci", "charset": "utf8mb4_general_ci",
"definition": "CREATE TABLE `edgeServerBandwidthStats_1` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'", "definition": "CREATE TABLE `edgeServerBandwidthStats_1` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `countIPs` bigint(20) unsigned DEFAULT '0' COMMENT '独立IP',\n PRIMARY KEY (`id`),\n UNIQUE KEY `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'",
"fields": [ "fields": [
{ {
"name": "id", "name": "id",
@@ -237838,6 +237846,10 @@
{ {
"name": "countAttackRequests", "name": "countAttackRequests",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
},
{
"name": "countIPs",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
} }
], ],
"indexes": [ "indexes": [
@@ -237864,7 +237876,7 @@
"name": "edgeServerBandwidthStats_10", "name": "edgeServerBandwidthStats_10",
"engine": "InnoDB", "engine": "InnoDB",
"charset": "utf8mb4_general_ci", "charset": "utf8mb4_general_ci",
"definition": "CREATE TABLE `edgeServerBandwidthStats_10` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'", "definition": "CREATE TABLE `edgeServerBandwidthStats_10` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `countIPs` bigint(20) unsigned DEFAULT '0' COMMENT '独立IP',\n PRIMARY KEY (`id`),\n UNIQUE KEY `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'",
"fields": [ "fields": [
{ {
"name": "id", "name": "id",
@@ -237925,6 +237937,10 @@
{ {
"name": "countAttackRequests", "name": "countAttackRequests",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
},
{
"name": "countIPs",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
} }
], ],
"indexes": [ "indexes": [
@@ -237951,7 +237967,7 @@
"name": "edgeServerBandwidthStats_11", "name": "edgeServerBandwidthStats_11",
"engine": "InnoDB", "engine": "InnoDB",
"charset": "utf8mb4_general_ci", "charset": "utf8mb4_general_ci",
"definition": "CREATE TABLE `edgeServerBandwidthStats_11` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'", "definition": "CREATE TABLE `edgeServerBandwidthStats_11` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `countIPs` bigint(20) unsigned DEFAULT '0' COMMENT '独立IP',\n PRIMARY KEY (`id`),\n UNIQUE KEY `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'",
"fields": [ "fields": [
{ {
"name": "id", "name": "id",
@@ -238012,6 +238028,10 @@
{ {
"name": "countAttackRequests", "name": "countAttackRequests",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
},
{
"name": "countIPs",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
} }
], ],
"indexes": [ "indexes": [
@@ -238038,7 +238058,7 @@
"name": "edgeServerBandwidthStats_12", "name": "edgeServerBandwidthStats_12",
"engine": "InnoDB", "engine": "InnoDB",
"charset": "utf8mb4_general_ci", "charset": "utf8mb4_general_ci",
"definition": "CREATE TABLE `edgeServerBandwidthStats_12` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'", "definition": "CREATE TABLE `edgeServerBandwidthStats_12` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `countIPs` bigint(20) unsigned DEFAULT '0' COMMENT '独立IP',\n PRIMARY KEY (`id`),\n UNIQUE KEY `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'",
"fields": [ "fields": [
{ {
"name": "id", "name": "id",
@@ -238099,6 +238119,10 @@
{ {
"name": "countAttackRequests", "name": "countAttackRequests",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
},
{
"name": "countIPs",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
} }
], ],
"indexes": [ "indexes": [
@@ -238125,7 +238149,7 @@
"name": "edgeServerBandwidthStats_13", "name": "edgeServerBandwidthStats_13",
"engine": "InnoDB", "engine": "InnoDB",
"charset": "utf8mb4_general_ci", "charset": "utf8mb4_general_ci",
"definition": "CREATE TABLE `edgeServerBandwidthStats_13` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'", "definition": "CREATE TABLE `edgeServerBandwidthStats_13` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `countIPs` bigint(20) unsigned DEFAULT '0' COMMENT '独立IP',\n PRIMARY KEY (`id`),\n UNIQUE KEY `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'",
"fields": [ "fields": [
{ {
"name": "id", "name": "id",
@@ -238186,6 +238210,10 @@
{ {
"name": "countAttackRequests", "name": "countAttackRequests",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
},
{
"name": "countIPs",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
} }
], ],
"indexes": [ "indexes": [
@@ -238212,7 +238240,7 @@
"name": "edgeServerBandwidthStats_14", "name": "edgeServerBandwidthStats_14",
"engine": "InnoDB", "engine": "InnoDB",
"charset": "utf8mb4_general_ci", "charset": "utf8mb4_general_ci",
"definition": "CREATE TABLE `edgeServerBandwidthStats_14` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户 ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'", "definition": "CREATE TABLE `edgeServerBandwidthStats_14` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户 ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `countIPs` bigint(20) unsigned DEFAULT '0' COMMENT '独立IP',\n PRIMARY KEY (`id`),\n UNIQUE KEY `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'",
"fields": [ "fields": [
{ {
"name": "id", "name": "id",
@@ -238273,6 +238301,10 @@
{ {
"name": "countAttackRequests", "name": "countAttackRequests",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
},
{
"name": "countIPs",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
} }
], ],
"indexes": [ "indexes": [
@@ -238299,7 +238331,7 @@
"name": "edgeServerBandwidthStats_15", "name": "edgeServerBandwidthStats_15",
"engine": "InnoDB", "engine": "InnoDB",
"charset": "utf8mb4_general_ci", "charset": "utf8mb4_general_ci",
"definition": "CREATE TABLE `edgeServerBandwidthStats_15` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'", "definition": "CREATE TABLE `edgeServerBandwidthStats_15` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `countIPs` bigint(20) unsigned DEFAULT '0' COMMENT '独立IP',\n PRIMARY KEY (`id`),\n UNIQUE KEY `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'",
"fields": [ "fields": [
{ {
"name": "id", "name": "id",
@@ -238360,6 +238392,10 @@
{ {
"name": "countAttackRequests", "name": "countAttackRequests",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
},
{
"name": "countIPs",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
} }
], ],
"indexes": [ "indexes": [
@@ -238386,7 +238422,7 @@
"name": "edgeServerBandwidthStats_16", "name": "edgeServerBandwidthStats_16",
"engine": "InnoDB", "engine": "InnoDB",
"charset": "utf8mb4_general_ci", "charset": "utf8mb4_general_ci",
"definition": "CREATE TABLE `edgeServerBandwidthStats_16` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'", "definition": "CREATE TABLE `edgeServerBandwidthStats_16` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `countIPs` bigint(20) unsigned DEFAULT '0' COMMENT '独立IP',\n PRIMARY KEY (`id`),\n UNIQUE KEY `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'",
"fields": [ "fields": [
{ {
"name": "id", "name": "id",
@@ -238447,6 +238483,10 @@
{ {
"name": "countAttackRequests", "name": "countAttackRequests",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
},
{
"name": "countIPs",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
} }
], ],
"indexes": [ "indexes": [
@@ -238473,7 +238513,7 @@
"name": "edgeServerBandwidthStats_17", "name": "edgeServerBandwidthStats_17",
"engine": "InnoDB", "engine": "InnoDB",
"charset": "utf8mb4_general_ci", "charset": "utf8mb4_general_ci",
"definition": "CREATE TABLE `edgeServerBandwidthStats_17` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'", "definition": "CREATE TABLE `edgeServerBandwidthStats_17` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `countIPs` bigint(20) unsigned DEFAULT '0' COMMENT '独立IP',\n PRIMARY KEY (`id`),\n UNIQUE KEY `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'",
"fields": [ "fields": [
{ {
"name": "id", "name": "id",
@@ -238534,6 +238574,10 @@
{ {
"name": "countAttackRequests", "name": "countAttackRequests",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
},
{
"name": "countIPs",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
} }
], ],
"indexes": [ "indexes": [
@@ -238560,7 +238604,7 @@
"name": "edgeServerBandwidthStats_18", "name": "edgeServerBandwidthStats_18",
"engine": "InnoDB", "engine": "InnoDB",
"charset": "utf8mb4_general_ci", "charset": "utf8mb4_general_ci",
"definition": "CREATE TABLE `edgeServerBandwidthStats_18` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'", "definition": "CREATE TABLE `edgeServerBandwidthStats_18` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `countIPs` bigint(20) unsigned DEFAULT '0' COMMENT '独立IP',\n PRIMARY KEY (`id`),\n UNIQUE KEY `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'",
"fields": [ "fields": [
{ {
"name": "id", "name": "id",
@@ -238621,6 +238665,10 @@
{ {
"name": "countAttackRequests", "name": "countAttackRequests",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
},
{
"name": "countIPs",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
} }
], ],
"indexes": [ "indexes": [
@@ -238647,7 +238695,7 @@
"name": "edgeServerBandwidthStats_19", "name": "edgeServerBandwidthStats_19",
"engine": "InnoDB", "engine": "InnoDB",
"charset": "utf8mb4_general_ci", "charset": "utf8mb4_general_ci",
"definition": "CREATE TABLE `edgeServerBandwidthStats_19` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'", "definition": "CREATE TABLE `edgeServerBandwidthStats_19` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `countIPs` bigint(20) unsigned DEFAULT '0' COMMENT '独立IP',\n PRIMARY KEY (`id`),\n UNIQUE KEY `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'",
"fields": [ "fields": [
{ {
"name": "id", "name": "id",
@@ -238708,6 +238756,10 @@
{ {
"name": "countAttackRequests", "name": "countAttackRequests",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
},
{
"name": "countIPs",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
} }
], ],
"indexes": [ "indexes": [
@@ -238734,7 +238786,7 @@
"name": "edgeServerBandwidthStats_2", "name": "edgeServerBandwidthStats_2",
"engine": "InnoDB", "engine": "InnoDB",
"charset": "utf8mb4_general_ci", "charset": "utf8mb4_general_ci",
"definition": "CREATE TABLE `edgeServerBandwidthStats_2` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'", "definition": "CREATE TABLE `edgeServerBandwidthStats_2` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `countIPs` bigint(20) unsigned DEFAULT '0' COMMENT '独立IP',\n PRIMARY KEY (`id`),\n UNIQUE KEY `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'",
"fields": [ "fields": [
{ {
"name": "id", "name": "id",
@@ -238795,6 +238847,10 @@
{ {
"name": "countAttackRequests", "name": "countAttackRequests",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
},
{
"name": "countIPs",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
} }
], ],
"indexes": [ "indexes": [
@@ -238821,7 +238877,7 @@
"name": "edgeServerBandwidthStats_3", "name": "edgeServerBandwidthStats_3",
"engine": "InnoDB", "engine": "InnoDB",
"charset": "utf8mb4_general_ci", "charset": "utf8mb4_general_ci",
"definition": "CREATE TABLE `edgeServerBandwidthStats_3` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `userId` (`userId`),\n KEY `day` (`day`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'", "definition": "CREATE TABLE `edgeServerBandwidthStats_3` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `countIPs` bigint(20) unsigned DEFAULT '0' COMMENT '独立IP',\n PRIMARY KEY (`id`),\n UNIQUE KEY `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `userId` (`userId`),\n KEY `day` (`day`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'",
"fields": [ "fields": [
{ {
"name": "id", "name": "id",
@@ -238882,6 +238938,10 @@
{ {
"name": "countAttackRequests", "name": "countAttackRequests",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
},
{
"name": "countIPs",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
} }
], ],
"indexes": [ "indexes": [
@@ -238908,7 +238968,7 @@
"name": "edgeServerBandwidthStats_4", "name": "edgeServerBandwidthStats_4",
"engine": "InnoDB", "engine": "InnoDB",
"charset": "utf8mb4_general_ci", "charset": "utf8mb4_general_ci",
"definition": "CREATE TABLE `edgeServerBandwidthStats_4` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'", "definition": "CREATE TABLE `edgeServerBandwidthStats_4` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `countIPs` bigint(20) unsigned DEFAULT '0' COMMENT '独立IP',\n PRIMARY KEY (`id`),\n UNIQUE KEY `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'",
"fields": [ "fields": [
{ {
"name": "id", "name": "id",
@@ -238969,6 +239029,10 @@
{ {
"name": "countAttackRequests", "name": "countAttackRequests",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
},
{
"name": "countIPs",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
} }
], ],
"indexes": [ "indexes": [
@@ -238995,7 +239059,7 @@
"name": "edgeServerBandwidthStats_5", "name": "edgeServerBandwidthStats_5",
"engine": "InnoDB", "engine": "InnoDB",
"charset": "utf8mb4_general_ci", "charset": "utf8mb4_general_ci",
"definition": "CREATE TABLE `edgeServerBandwidthStats_5` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'", "definition": "CREATE TABLE `edgeServerBandwidthStats_5` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `countIPs` bigint(20) unsigned DEFAULT '0' COMMENT '独立IP',\n PRIMARY KEY (`id`),\n UNIQUE KEY `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'",
"fields": [ "fields": [
{ {
"name": "id", "name": "id",
@@ -239056,6 +239120,10 @@
{ {
"name": "countAttackRequests", "name": "countAttackRequests",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
},
{
"name": "countIPs",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
} }
], ],
"indexes": [ "indexes": [
@@ -239082,7 +239150,7 @@
"name": "edgeServerBandwidthStats_6", "name": "edgeServerBandwidthStats_6",
"engine": "InnoDB", "engine": "InnoDB",
"charset": "utf8mb4_general_ci", "charset": "utf8mb4_general_ci",
"definition": "CREATE TABLE `edgeServerBandwidthStats_6` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'", "definition": "CREATE TABLE `edgeServerBandwidthStats_6` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `countIPs` bigint(20) unsigned DEFAULT '0' COMMENT '独立IP',\n PRIMARY KEY (`id`),\n UNIQUE KEY `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'",
"fields": [ "fields": [
{ {
"name": "id", "name": "id",
@@ -239143,6 +239211,10 @@
{ {
"name": "countAttackRequests", "name": "countAttackRequests",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
},
{
"name": "countIPs",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
} }
], ],
"indexes": [ "indexes": [
@@ -239169,7 +239241,7 @@
"name": "edgeServerBandwidthStats_7", "name": "edgeServerBandwidthStats_7",
"engine": "InnoDB", "engine": "InnoDB",
"charset": "utf8mb4_general_ci", "charset": "utf8mb4_general_ci",
"definition": "CREATE TABLE `edgeServerBandwidthStats_7` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'", "definition": "CREATE TABLE `edgeServerBandwidthStats_7` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `countIPs` bigint(20) unsigned DEFAULT '0' COMMENT '独立IP',\n PRIMARY KEY (`id`),\n UNIQUE KEY `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'",
"fields": [ "fields": [
{ {
"name": "id", "name": "id",
@@ -239230,6 +239302,10 @@
{ {
"name": "countAttackRequests", "name": "countAttackRequests",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
},
{
"name": "countIPs",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
} }
], ],
"indexes": [ "indexes": [
@@ -239256,7 +239332,7 @@
"name": "edgeServerBandwidthStats_8", "name": "edgeServerBandwidthStats_8",
"engine": "InnoDB", "engine": "InnoDB",
"charset": "utf8mb4_general_ci", "charset": "utf8mb4_general_ci",
"definition": "CREATE TABLE `edgeServerBandwidthStats_8` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'", "definition": "CREATE TABLE `edgeServerBandwidthStats_8` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `countIPs` bigint(20) unsigned DEFAULT '0' COMMENT '独立IP',\n PRIMARY KEY (`id`),\n UNIQUE KEY `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'",
"fields": [ "fields": [
{ {
"name": "id", "name": "id",
@@ -239317,6 +239393,10 @@
{ {
"name": "countAttackRequests", "name": "countAttackRequests",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
},
{
"name": "countIPs",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
} }
], ],
"indexes": [ "indexes": [
@@ -239343,7 +239423,7 @@
"name": "edgeServerBandwidthStats_9", "name": "edgeServerBandwidthStats_9",
"engine": "InnoDB", "engine": "InnoDB",
"charset": "utf8mb4_general_ci", "charset": "utf8mb4_general_ci",
"definition": "CREATE TABLE `edgeServerBandwidthStats_9` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'", "definition": "CREATE TABLE `edgeServerBandwidthStats_9` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `userId` bigint(20) unsigned DEFAULT '0' COMMENT '用户ID',\n `serverId` bigint(20) unsigned DEFAULT '0' COMMENT '服务ID',\n `day` varchar(8) DEFAULT NULL COMMENT '日期YYYYMMDD',\n `timeAt` varchar(4) DEFAULT NULL COMMENT '时间点HHMM',\n `bytes` bigint(20) unsigned DEFAULT '0' COMMENT '带宽字节',\n `regionId` int(11) unsigned DEFAULT '0' COMMENT '区域ID',\n `userPlanId` bigint(20) 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 `countIPs` bigint(20) unsigned DEFAULT '0' COMMENT '独立IP',\n PRIMARY KEY (`id`),\n UNIQUE KEY `server_day_time_region` (`serverId`,`day`,`timeAt`,`regionId`) USING BTREE,\n KEY `day` (`day`),\n KEY `userId` (`userId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='服务峰值带宽统计'",
"fields": [ "fields": [
{ {
"name": "id", "name": "id",
@@ -239404,6 +239484,10 @@
{ {
"name": "countAttackRequests", "name": "countAttackRequests",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'" "definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
},
{
"name": "countIPs",
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
} }
], ],
"indexes": [ "indexes": [