2022-07-05 20:09:19 +08:00
|
|
|
|
syntax = "proto3";
|
|
|
|
|
|
option go_package = "./pb";
|
|
|
|
|
|
|
|
|
|
|
|
package pb;
|
|
|
|
|
|
|
|
|
|
|
|
import "models/rpc_messages.proto";
|
|
|
|
|
|
import "models/model_server_bandwidth_stat.proto";
|
|
|
|
|
|
|
|
|
|
|
|
// 服务带宽统计服务
|
|
|
|
|
|
service ServerBandwidthStatService {
|
|
|
|
|
|
// 上传带宽统计
|
|
|
|
|
|
rpc uploadServerBandwidthStats(UploadServerBandwidthStatsRequest) returns (RPCSuccess);
|
2022-08-01 15:41:07 +08:00
|
|
|
|
|
|
|
|
|
|
// 获取服务的峰值带宽
|
|
|
|
|
|
rpc findServerBandwidthStats(FindServerBandwidthStatsRequest) returns (FindServerBandwidthStatsResponse);
|
2022-07-05 20:09:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 上传带宽统计
|
|
|
|
|
|
message UploadServerBandwidthStatsRequest {
|
|
|
|
|
|
repeated ServerBandwidthStat serverBandwidthStats = 1;
|
2022-08-01 15:41:07 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 获取服务的峰值带宽
|
|
|
|
|
|
message FindServerBandwidthStatsRequest {
|
|
|
|
|
|
int64 serverId = 1; // 服务ID
|
|
|
|
|
|
string month = 2; // YYYYMM,month和day二选一
|
|
|
|
|
|
string day = 3; // YYYYMMDD
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
message FindServerBandwidthStatsResponse {
|
|
|
|
|
|
repeated ServerBandwidthStat serverBandwidthStats = 1;
|
2022-07-05 20:09:19 +08:00
|
|
|
|
}
|