服务带宽统计服务找到 4 个接口
获取最近N小时峰值带宽
findHourlyServerBandwidthStats
POST/ServerBandwidthStatService/findHourlyServerBandwidthStats
- 定义文件
service_server_bandwidth_stat.proto- 可用角色
- 管理员
rpc findHourlyServerBandwidthStats(FindHourlyServerBandwidthStatsRequest) returns (FindHourlyServerBandwidthStatsResponse);
请求消息
FindHourlyServerBandwidthStatsRequest获取最近N小时峰值带宽
message FindHourlyServerBandwidthStatsRequest {
int64 serverId = 1;
int32 hours = 2;
string algo = 3; // 带宽算法,目前支持secondly和avg
}
响应消息
FindHourlyServerBandwidthStatsResponsemessage FindHourlyServerBandwidthStatsResponse {
repeated Stat stats = 1;
int32 percentile = 2; // 百分位
Stat nthStat = 3; // 百分位统计数据
message Stat {
string day = 1;
int32 hour = 2;
int64 bytes = 3; // 峰值字节/秒
int64 bits = 4; // 峰值比特/秒
}
}