实现峰值带宽和平均带宽两种带宽算法

This commit is contained in:
刘祥超
2023-02-27 10:47:31 +08:00
parent 727ac23e17
commit 0933ae903b
14 changed files with 619 additions and 540 deletions

View File

@@ -34,6 +34,7 @@ message FindServerBandwidthStatsRequest {
int64 serverId = 1; // 服务ID
string month = 2; // YYYYMMmonth和day二选一
string day = 3; // YYYYMMDD
string algo = 4; // 带宽算法目前支持secondly和avg
}
message FindServerBandwidthStatsResponse {
@@ -44,6 +45,7 @@ message FindServerBandwidthStatsResponse {
message FindHourlyServerBandwidthStatsRequest {
int64 serverId = 1;
int32 hours = 2;
string algo = 3; // 带宽算法目前支持secondly和avg
}
message FindHourlyServerBandwidthStatsResponse {
@@ -54,8 +56,8 @@ message FindHourlyServerBandwidthStatsResponse {
message Stat {
string day = 1;
int32 hour = 2;
int64 bytes = 3;
int64 bits = 4;
int64 bytes = 3; // 峰值字节/秒
int64 bits = 4; // 峰值比特/秒
}
}
@@ -63,6 +65,7 @@ message FindHourlyServerBandwidthStatsResponse {
message FindDailyServerBandwidthStatsRequest {
int64 serverId = 1;
int32 days = 2;
string algo = 3; // 带宽算法目前支持secondly和avg
}
message FindDailyServerBandwidthStatsResponse {
@@ -72,8 +75,8 @@ message FindDailyServerBandwidthStatsResponse {
message Stat {
string day = 1;
int64 bytes = 3;
int64 bits = 4;
int64 bytes = 3; // 峰值字节/秒
int64 bits = 4; // 峰值比特/秒
}
}
@@ -85,6 +88,7 @@ message FindDailyServerBandwidthStatsBetweenDaysRequest {
string dayTo = 4; // 结束日期 YYYYMMDD
int32 percentile = 5; // 可选项百分位nth带宽位置0-100之间
int64 nodeRegionId = 6; // 区域ID可选项目前只有用户整体统计支持区域ID
string algo = 7; // 带宽算法目前支持secondly和avg
}
message FindDailyServerBandwidthStatsBetweenDaysResponse {
@@ -94,7 +98,7 @@ message FindDailyServerBandwidthStatsBetweenDaysResponse {
message Stat {
string day = 1;
string timeAt = 2;
int64 bytes = 3; // 字节/秒
int64 bits = 4; // 比特/秒
int64 bytes = 3; // 峰值字节/秒
int64 bits = 4; // 峰值比特/秒
}
}