服务带宽统计服务找到 4 个接口
获取服务的峰值带宽
findServerBandwidthStats
POST/ServerBandwidthStatService/findServerBandwidthStats
- 定义文件
service_server_bandwidth_stat.proto- 可用角色
- 管理员
rpc findServerBandwidthStats(FindServerBandwidthStatsRequest) returns (FindServerBandwidthStatsResponse);
请求消息
FindServerBandwidthStatsRequest获取服务的峰值带宽
message FindServerBandwidthStatsRequest {
int64 serverId = 1; // 服务ID
string month = 2; // YYYYMM,month和day二选一
string day = 3; // YYYYMMDD
string algo = 4; // 带宽算法,目前支持secondly和avg
}
响应消息
FindServerBandwidthStatsResponsemessage FindServerBandwidthStatsResponse {
repeated ServerBandwidthStat serverBandwidthStats = 1;
}