mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-14 21:06:34 +08:00
增加服务带宽统计
This commit is contained in:
13
pkg/rpc/protos/models/model_server_bandwidth_stat.proto
Normal file
13
pkg/rpc/protos/models/model_server_bandwidth_stat.proto
Normal file
@@ -0,0 +1,13 @@
|
||||
syntax = "proto3";
|
||||
option go_package = "./pb";
|
||||
|
||||
package pb;
|
||||
|
||||
// 带宽统计数据
|
||||
message ServerBandwidthStat {
|
||||
int64 id = 1;
|
||||
int64 serverId = 2;
|
||||
string day = 3;
|
||||
string timeAt = 4;
|
||||
int64 bytes = 5;
|
||||
}
|
||||
18
pkg/rpc/protos/service_server_bandwidth_stat.proto
Normal file
18
pkg/rpc/protos/service_server_bandwidth_stat.proto
Normal file
@@ -0,0 +1,18 @@
|
||||
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);
|
||||
}
|
||||
|
||||
// 上传带宽统计
|
||||
message UploadServerBandwidthStatsRequest {
|
||||
repeated ServerBandwidthStat serverBandwidthStats = 1;
|
||||
}
|
||||
@@ -7,6 +7,7 @@ import "models/model_server_stat_board.proto";
|
||||
import "models/model_node_value.proto";
|
||||
import "models/model_metric_chart.proto";
|
||||
import "models/model_metric_stat.proto";
|
||||
import "models/model_server_bandwidth_stat.proto";
|
||||
|
||||
// 统计看板
|
||||
service ServerStatBoardService {
|
||||
@@ -139,6 +140,7 @@ message ComposeServerStatBoardRequest {
|
||||
}
|
||||
|
||||
message ComposeServerStatBoardResponse {
|
||||
repeated ServerBandwidthStat serverBandwidthStats = 1;
|
||||
repeated DailyTrafficStat dailyTrafficStats = 30;
|
||||
repeated HourlyTrafficStat hourlyTrafficStats = 31;
|
||||
repeated NodeStat topNodeStats = 32;
|
||||
|
||||
Reference in New Issue
Block a user