mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-30 09:10:26 +08:00
服务列表增加下行带宽
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -296,6 +296,8 @@ message ListEnabledServersMatchRequest {
|
||||
int64 nodeClusterId = 6;
|
||||
int32 auditingFlag = 7;
|
||||
string protocolFamily = 8;
|
||||
bool trafficOutAsc = 9;
|
||||
bool trafficOutDesc = 10;
|
||||
}
|
||||
|
||||
message ListEnabledServersMatchResponse {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user