Archived
网站看板数据中增加当日独立IP和当日流量
This commit is contained in:
@@ -64,7 +64,7 @@ func init() {
|
||||
|
||||
// UpdateServerBandwidth 写入数据
|
||||
// 现在不需要把 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 {
|
||||
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("countCachedRequests", countCachedRequests).
|
||||
Param("countAttackRequests", countAttackRequests).
|
||||
Param("countIPs", countIPs).
|
||||
InsertOrUpdateQuickly(maps.Map{
|
||||
"userId": userId,
|
||||
"serverId": serverId,
|
||||
@@ -93,6 +94,7 @@ func (this *ServerBandwidthStatDAO) UpdateServerBandwidth(tx *dbs.Tx, userId int
|
||||
"countCachedRequests": countCachedRequests,
|
||||
"countAttackRequests": countAttackRequests,
|
||||
"userPlanId": userPlanId,
|
||||
"countIPs": countIPs,
|
||||
}, maps.Map{
|
||||
"bytes": dbs.SQL("bytes+:bytes"),
|
||||
"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"),
|
||||
"countCachedRequests": dbs.SQL("countCachedRequests+:countCachedRequests"),
|
||||
"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).
|
||||
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)
|
||||
|
||||
@@ -755,6 +758,7 @@ func (this *ServerBandwidthStatDAO) SumDailyStat(tx *dbs.Tx, serverId int64, reg
|
||||
stat.CountCachedRequests = one.GetInt64("countCachedRequests")
|
||||
stat.CountAttackRequests = one.GetInt64("countAttackRequests")
|
||||
stat.AttackBytes = one.GetInt64("attackBytes")
|
||||
stat.CountIPs = one.GetInt64("countIPs")
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@ const (
|
||||
ServerBandwidthStatField_CountCachedRequests dbs.FieldName = "countCachedRequests" // 缓存的请求数
|
||||
ServerBandwidthStatField_CountAttackRequests dbs.FieldName = "countAttackRequests" // 攻击请求数
|
||||
ServerBandwidthStatField_TotalBytes dbs.FieldName = "totalBytes" // 总流量
|
||||
ServerBandwidthStatField_CountIPs dbs.FieldName = "countIPs" // 独立IP
|
||||
)
|
||||
|
||||
// ServerBandwidthStat 服务峰值带宽统计
|
||||
@@ -37,6 +38,7 @@ type ServerBandwidthStat struct {
|
||||
CountCachedRequests uint64 `field:"countCachedRequests"` // 缓存的请求数
|
||||
CountAttackRequests uint64 `field:"countAttackRequests"` // 攻击请求数
|
||||
TotalBytes uint64 `field:"totalBytes"` // 总流量
|
||||
CountIPs uint64 `field:"countIPs"` // 独立IP
|
||||
}
|
||||
|
||||
type ServerBandwidthStatOperator struct {
|
||||
@@ -55,6 +57,7 @@ type ServerBandwidthStatOperator struct {
|
||||
CountCachedRequests any // 缓存的请求数
|
||||
CountAttackRequests any // 攻击请求数
|
||||
TotalBytes any // 总流量
|
||||
CountIPs any // 独立IP
|
||||
}
|
||||
|
||||
func NewServerBandwidthStatOperator() *ServerBandwidthStatOperator {
|
||||
|
||||
@@ -66,7 +66,7 @@ func init() {
|
||||
// 更新网站的带宽峰值
|
||||
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 {
|
||||
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.CountAttackRequests += stat.CountAttackRequests
|
||||
oldStat.CountWebsocketConnections += stat.CountWebsocketConnections
|
||||
oldStat.CountIPs += stat.CountIPs
|
||||
} else {
|
||||
serverBandwidthStatsMap[key] = &pb.ServerBandwidthStat{
|
||||
Id: 0,
|
||||
@@ -164,6 +165,7 @@ func (this *ServerBandwidthStatService) UploadServerBandwidthStats(ctx context.C
|
||||
CountAttackRequests: stat.CountAttackRequests,
|
||||
CountWebsocketConnections: stat.CountWebsocketConnections,
|
||||
UserPlanId: stat.UserPlanId,
|
||||
CountIPs: stat.CountIPs,
|
||||
}
|
||||
}
|
||||
serverBandwidthStatsLocker.Unlock()
|
||||
|
||||
@@ -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")
|
||||
|
||||
+105
-21
@@ -237603,7 +237603,7 @@
|
||||
"name": "edgeServerBandwidthStats",
|
||||
"engine": "InnoDB",
|
||||
"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": [
|
||||
{
|
||||
"name": "id",
|
||||
@@ -237664,6 +237664,10 @@
|
||||
{
|
||||
"name": "totalBytes",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '总流量'"
|
||||
},
|
||||
{
|
||||
"name": "countIPs",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
|
||||
}
|
||||
],
|
||||
"indexes": [
|
||||
@@ -237690,7 +237694,7 @@
|
||||
"name": "edgeServerBandwidthStats_0",
|
||||
"engine": "InnoDB",
|
||||
"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": [
|
||||
{
|
||||
"name": "id",
|
||||
@@ -237751,6 +237755,10 @@
|
||||
{
|
||||
"name": "countAttackRequests",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
|
||||
},
|
||||
{
|
||||
"name": "countIPs",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
|
||||
}
|
||||
],
|
||||
"indexes": [
|
||||
@@ -237777,7 +237785,7 @@
|
||||
"name": "edgeServerBandwidthStats_1",
|
||||
"engine": "InnoDB",
|
||||
"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": [
|
||||
{
|
||||
"name": "id",
|
||||
@@ -237838,6 +237846,10 @@
|
||||
{
|
||||
"name": "countAttackRequests",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
|
||||
},
|
||||
{
|
||||
"name": "countIPs",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
|
||||
}
|
||||
],
|
||||
"indexes": [
|
||||
@@ -237864,7 +237876,7 @@
|
||||
"name": "edgeServerBandwidthStats_10",
|
||||
"engine": "InnoDB",
|
||||
"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": [
|
||||
{
|
||||
"name": "id",
|
||||
@@ -237925,6 +237937,10 @@
|
||||
{
|
||||
"name": "countAttackRequests",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
|
||||
},
|
||||
{
|
||||
"name": "countIPs",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
|
||||
}
|
||||
],
|
||||
"indexes": [
|
||||
@@ -237951,7 +237967,7 @@
|
||||
"name": "edgeServerBandwidthStats_11",
|
||||
"engine": "InnoDB",
|
||||
"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": [
|
||||
{
|
||||
"name": "id",
|
||||
@@ -238012,6 +238028,10 @@
|
||||
{
|
||||
"name": "countAttackRequests",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
|
||||
},
|
||||
{
|
||||
"name": "countIPs",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
|
||||
}
|
||||
],
|
||||
"indexes": [
|
||||
@@ -238038,7 +238058,7 @@
|
||||
"name": "edgeServerBandwidthStats_12",
|
||||
"engine": "InnoDB",
|
||||
"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": [
|
||||
{
|
||||
"name": "id",
|
||||
@@ -238099,6 +238119,10 @@
|
||||
{
|
||||
"name": "countAttackRequests",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
|
||||
},
|
||||
{
|
||||
"name": "countIPs",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
|
||||
}
|
||||
],
|
||||
"indexes": [
|
||||
@@ -238125,7 +238149,7 @@
|
||||
"name": "edgeServerBandwidthStats_13",
|
||||
"engine": "InnoDB",
|
||||
"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": [
|
||||
{
|
||||
"name": "id",
|
||||
@@ -238186,6 +238210,10 @@
|
||||
{
|
||||
"name": "countAttackRequests",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
|
||||
},
|
||||
{
|
||||
"name": "countIPs",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
|
||||
}
|
||||
],
|
||||
"indexes": [
|
||||
@@ -238212,7 +238240,7 @@
|
||||
"name": "edgeServerBandwidthStats_14",
|
||||
"engine": "InnoDB",
|
||||
"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": [
|
||||
{
|
||||
"name": "id",
|
||||
@@ -238273,6 +238301,10 @@
|
||||
{
|
||||
"name": "countAttackRequests",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
|
||||
},
|
||||
{
|
||||
"name": "countIPs",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
|
||||
}
|
||||
],
|
||||
"indexes": [
|
||||
@@ -238299,7 +238331,7 @@
|
||||
"name": "edgeServerBandwidthStats_15",
|
||||
"engine": "InnoDB",
|
||||
"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": [
|
||||
{
|
||||
"name": "id",
|
||||
@@ -238360,6 +238392,10 @@
|
||||
{
|
||||
"name": "countAttackRequests",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
|
||||
},
|
||||
{
|
||||
"name": "countIPs",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
|
||||
}
|
||||
],
|
||||
"indexes": [
|
||||
@@ -238386,7 +238422,7 @@
|
||||
"name": "edgeServerBandwidthStats_16",
|
||||
"engine": "InnoDB",
|
||||
"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": [
|
||||
{
|
||||
"name": "id",
|
||||
@@ -238447,6 +238483,10 @@
|
||||
{
|
||||
"name": "countAttackRequests",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
|
||||
},
|
||||
{
|
||||
"name": "countIPs",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
|
||||
}
|
||||
],
|
||||
"indexes": [
|
||||
@@ -238473,7 +238513,7 @@
|
||||
"name": "edgeServerBandwidthStats_17",
|
||||
"engine": "InnoDB",
|
||||
"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": [
|
||||
{
|
||||
"name": "id",
|
||||
@@ -238534,6 +238574,10 @@
|
||||
{
|
||||
"name": "countAttackRequests",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
|
||||
},
|
||||
{
|
||||
"name": "countIPs",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
|
||||
}
|
||||
],
|
||||
"indexes": [
|
||||
@@ -238560,7 +238604,7 @@
|
||||
"name": "edgeServerBandwidthStats_18",
|
||||
"engine": "InnoDB",
|
||||
"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": [
|
||||
{
|
||||
"name": "id",
|
||||
@@ -238621,6 +238665,10 @@
|
||||
{
|
||||
"name": "countAttackRequests",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
|
||||
},
|
||||
{
|
||||
"name": "countIPs",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
|
||||
}
|
||||
],
|
||||
"indexes": [
|
||||
@@ -238647,7 +238695,7 @@
|
||||
"name": "edgeServerBandwidthStats_19",
|
||||
"engine": "InnoDB",
|
||||
"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": [
|
||||
{
|
||||
"name": "id",
|
||||
@@ -238708,6 +238756,10 @@
|
||||
{
|
||||
"name": "countAttackRequests",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
|
||||
},
|
||||
{
|
||||
"name": "countIPs",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
|
||||
}
|
||||
],
|
||||
"indexes": [
|
||||
@@ -238734,7 +238786,7 @@
|
||||
"name": "edgeServerBandwidthStats_2",
|
||||
"engine": "InnoDB",
|
||||
"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": [
|
||||
{
|
||||
"name": "id",
|
||||
@@ -238795,6 +238847,10 @@
|
||||
{
|
||||
"name": "countAttackRequests",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
|
||||
},
|
||||
{
|
||||
"name": "countIPs",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
|
||||
}
|
||||
],
|
||||
"indexes": [
|
||||
@@ -238821,7 +238877,7 @@
|
||||
"name": "edgeServerBandwidthStats_3",
|
||||
"engine": "InnoDB",
|
||||
"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": [
|
||||
{
|
||||
"name": "id",
|
||||
@@ -238882,6 +238938,10 @@
|
||||
{
|
||||
"name": "countAttackRequests",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
|
||||
},
|
||||
{
|
||||
"name": "countIPs",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
|
||||
}
|
||||
],
|
||||
"indexes": [
|
||||
@@ -238908,7 +238968,7 @@
|
||||
"name": "edgeServerBandwidthStats_4",
|
||||
"engine": "InnoDB",
|
||||
"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": [
|
||||
{
|
||||
"name": "id",
|
||||
@@ -238969,6 +239029,10 @@
|
||||
{
|
||||
"name": "countAttackRequests",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
|
||||
},
|
||||
{
|
||||
"name": "countIPs",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
|
||||
}
|
||||
],
|
||||
"indexes": [
|
||||
@@ -238995,7 +239059,7 @@
|
||||
"name": "edgeServerBandwidthStats_5",
|
||||
"engine": "InnoDB",
|
||||
"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": [
|
||||
{
|
||||
"name": "id",
|
||||
@@ -239056,6 +239120,10 @@
|
||||
{
|
||||
"name": "countAttackRequests",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
|
||||
},
|
||||
{
|
||||
"name": "countIPs",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
|
||||
}
|
||||
],
|
||||
"indexes": [
|
||||
@@ -239082,7 +239150,7 @@
|
||||
"name": "edgeServerBandwidthStats_6",
|
||||
"engine": "InnoDB",
|
||||
"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": [
|
||||
{
|
||||
"name": "id",
|
||||
@@ -239143,6 +239211,10 @@
|
||||
{
|
||||
"name": "countAttackRequests",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
|
||||
},
|
||||
{
|
||||
"name": "countIPs",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
|
||||
}
|
||||
],
|
||||
"indexes": [
|
||||
@@ -239169,7 +239241,7 @@
|
||||
"name": "edgeServerBandwidthStats_7",
|
||||
"engine": "InnoDB",
|
||||
"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": [
|
||||
{
|
||||
"name": "id",
|
||||
@@ -239230,6 +239302,10 @@
|
||||
{
|
||||
"name": "countAttackRequests",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
|
||||
},
|
||||
{
|
||||
"name": "countIPs",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
|
||||
}
|
||||
],
|
||||
"indexes": [
|
||||
@@ -239256,7 +239332,7 @@
|
||||
"name": "edgeServerBandwidthStats_8",
|
||||
"engine": "InnoDB",
|
||||
"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": [
|
||||
{
|
||||
"name": "id",
|
||||
@@ -239317,6 +239393,10 @@
|
||||
{
|
||||
"name": "countAttackRequests",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
|
||||
},
|
||||
{
|
||||
"name": "countIPs",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
|
||||
}
|
||||
],
|
||||
"indexes": [
|
||||
@@ -239343,7 +239423,7 @@
|
||||
"name": "edgeServerBandwidthStats_9",
|
||||
"engine": "InnoDB",
|
||||
"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": [
|
||||
{
|
||||
"name": "id",
|
||||
@@ -239404,6 +239484,10 @@
|
||||
{
|
||||
"name": "countAttackRequests",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '攻击请求数'"
|
||||
},
|
||||
{
|
||||
"name": "countIPs",
|
||||
"definition": "bigint(20) unsigned DEFAULT '0' COMMENT '独立IP'"
|
||||
}
|
||||
],
|
||||
"indexes": [
|
||||
|
||||
Reference in New Issue
Block a user