服务列表增加下行带宽

This commit is contained in:
GoEdgeLab
2022-04-15 12:14:42 +08:00
parent 145a56dc51
commit 01390d56e4
8 changed files with 992 additions and 719 deletions

View File

@@ -7,6 +7,7 @@ import "models/model_node_cluster.proto";
import "models/model_server_group.proto";
import "models/model_user.proto";
import "models/model_server_name_auditing_result.proto";
import "models/model_server_daily_stat.proto";
message Server {
int64 id = 1;
@@ -41,5 +42,5 @@ message Server {
NodeCluster nodeCluster = 30;
repeated ServerGroup serverGroups = 31;
User user = 32;
ServerDailyStat latestServerDailyStat = 33;
}

View File

@@ -16,4 +16,8 @@ message ServerDailyStat {
int64 attackBytes = 9;
bool checkTrafficLimiting = 10;
int64 planId = 11;
string day = 12;
string hour = 13;
string timeFrom = 14;
string timeTo = 15;
}

View File

@@ -296,6 +296,8 @@ message ListEnabledServersMatchRequest {
int64 nodeClusterId = 6;
int32 auditingFlag = 7;
string protocolFamily = 8;
bool trafficOutAsc = 9;
bool trafficOutDesc = 10;
}
message ListEnabledServersMatchResponse {

View File

@@ -19,6 +19,9 @@ service ServerDailyStatService {
// 按日读取统计数据
rpc findLatestServerDailyStats (FindLatestServerDailyStatsRequest) returns (FindLatestServerDailyStatsResponse);
// 查找单个服务当前统计数据
rpc sumCurrentServerDailyStats(SumCurrentServerDailyStatsRequest) returns (SumCurrentServerDailyStatsResponse);
}
// 上传统计
@@ -91,4 +94,13 @@ message FindLatestServerDailyStatsResponse {
int64 countRequests = 4;
int64 countCachedRequests = 5;
}
}
// 查找单个服务当前统计数据
message SumCurrentServerDailyStatsRequest {
int64 serverId = 1;
}
message SumCurrentServerDailyStatsResponse {
ServerDailyStat serverDailyStat = 1;
}