mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-28 21:46:37 +08:00
服务流量接口增加5分钟查询接口
This commit is contained in:
@@ -14,9 +14,12 @@ service ServerDailyStatService {
|
||||
// 按小时读取统计数据
|
||||
rpc findLatestServerHourlyStats (FindLatestServerHourlyStatsRequest) returns (FindLatestServerHourlyStatsResponse);
|
||||
|
||||
// 按分钟读取统计数据
|
||||
// 按分钟读取统计数据,并返回秒级平均流量
|
||||
rpc findLatestServerMinutelyStats (FindLatestServerMinutelyStatsRequest) returns (FindLatestServerMinutelyStatsResponse);
|
||||
|
||||
// 读取某天的5分钟间隔流量
|
||||
rpc findServer5MinutelyStatsWithDay(FindServer5MinutelyStatsWithDayRequest) returns (FindServer5MinutelyStatsWithDayResponse);
|
||||
|
||||
// 按日读取统计数据
|
||||
rpc findLatestServerDailyStats (FindLatestServerDailyStatsRequest) returns (FindLatestServerDailyStatsResponse);
|
||||
|
||||
@@ -84,6 +87,26 @@ message FindLatestServerMinutelyStatsResponse {
|
||||
}
|
||||
}
|
||||
|
||||
// 读取某天的5分钟间隔流量
|
||||
message FindServer5MinutelyStatsWithDayRequest {
|
||||
int64 serverId = 1;
|
||||
string day = 2; // YYYYMMDD
|
||||
}
|
||||
|
||||
message FindServer5MinutelyStatsWithDayResponse {
|
||||
repeated Stat stats = 1;
|
||||
|
||||
message Stat {
|
||||
string day = 1;
|
||||
string timeFrom = 2;
|
||||
string timeTo = 3;
|
||||
int64 bytes = 4;
|
||||
int64 cachedBytes = 5;
|
||||
int64 countRequests = 6;
|
||||
int64 countCachedRequests = 7;
|
||||
}
|
||||
}
|
||||
|
||||
// 按日读取统计数据
|
||||
message FindLatestServerDailyStatsRequest {
|
||||
int64 serverId = 1;
|
||||
|
||||
Reference in New Issue
Block a user