服务带宽API增加按月、按日查询接口

This commit is contained in:
刘祥超
2022-08-01 15:41:07 +08:00
parent c453222774
commit 7ea8189c19
3 changed files with 3359 additions and 3130 deletions

View File

@@ -10,9 +10,23 @@ import "models/model_server_bandwidth_stat.proto";
service ServerBandwidthStatService {
// 上传带宽统计
rpc uploadServerBandwidthStats(UploadServerBandwidthStatsRequest) returns (RPCSuccess);
// 获取服务的峰值带宽
rpc findServerBandwidthStats(FindServerBandwidthStatsRequest) returns (FindServerBandwidthStatsResponse);
}
// 上传带宽统计
message UploadServerBandwidthStatsRequest {
repeated ServerBandwidthStat serverBandwidthStats = 1;
}
// 获取服务的峰值带宽
message FindServerBandwidthStatsRequest {
int64 serverId = 1; // 服务ID
string month = 2; // YYYYMMmonth和day二选一
string day = 3; // YYYYMMDD
}
message FindServerBandwidthStatsResponse {
repeated ServerBandwidthStat serverBandwidthStats = 1;
}