mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-25 03:26:36 +08:00
实现数据看板-DNS
This commit is contained in:
14
pkg/rpc/protos/models/model_ns_record_hourly_stat.proto
Normal file
14
pkg/rpc/protos/models/model_ns_record_hourly_stat.proto
Normal file
@@ -0,0 +1,14 @@
|
||||
syntax = "proto3";
|
||||
option go_package = "./pb";
|
||||
|
||||
package pb;
|
||||
|
||||
message NSRecordHourlyStat {
|
||||
int64 nsClusterId = 1;
|
||||
int64 nsNodeId = 2;
|
||||
int64 nsDomainId = 3;
|
||||
int64 nsRecordId = 4;
|
||||
int64 bytes = 5;
|
||||
int64 countRequests = 6;
|
||||
int64 createdAt = 7;
|
||||
}
|
||||
@@ -21,11 +21,12 @@ message ComposeNSBoardResponse {
|
||||
int64 countNSRecords = 2;
|
||||
int64 countNSClusters = 3;
|
||||
int64 countNSNodes = 4;
|
||||
int64 countOfflineNSNodes = 5;
|
||||
|
||||
repeated DailyTrafficStat dailyTrafficStats = 30;
|
||||
repeated HourlyTrafficStat hourlyTrafficStats = 31;
|
||||
repeated NodeStat topNodeStats = 32;
|
||||
repeated DomainStat topDomainStats = 33;
|
||||
repeated NodeStat topNSNodeStats = 32;
|
||||
repeated DomainStat topNSDomainStats = 33;
|
||||
repeated NodeValue cpuNodeValues = 34;
|
||||
repeated NodeValue memoryNodeValues = 35;
|
||||
repeated NodeValue loadNodeValues = 36;
|
||||
@@ -33,27 +34,26 @@ message ComposeNSBoardResponse {
|
||||
message DailyTrafficStat {
|
||||
string day = 1;
|
||||
int64 bytes = 2;
|
||||
int64 cachedBytes = 3;
|
||||
int64 countRequests = 4;
|
||||
int64 countRequests = 3;
|
||||
}
|
||||
|
||||
message HourlyTrafficStat {
|
||||
string hour = 1;
|
||||
int64 bytes = 2;
|
||||
int64 cachedBytes = 3;
|
||||
int64 countRequests = 4;
|
||||
int64 countRequests = 3;
|
||||
}
|
||||
|
||||
message NodeStat {
|
||||
int64 nodeId = 1;
|
||||
string nodeName = 2;
|
||||
int64 countRequests = 3;
|
||||
int64 bytes = 4;
|
||||
int64 nsClusterId = 1;
|
||||
int64 nsNodeId = 2;
|
||||
string nsNodeName = 3;
|
||||
int64 countRequests = 4;
|
||||
int64 bytes = 5;
|
||||
}
|
||||
|
||||
message DomainStat {
|
||||
int64 serverId = 1;
|
||||
string domain = 2;
|
||||
int64 nsDomainId = 1;
|
||||
string nsDomainName = 2;
|
||||
int64 countRequests = 3;
|
||||
int64 bytes = 4;
|
||||
}
|
||||
|
||||
18
pkg/rpc/protos/service_ns_record_hourly_stat.proto
Normal file
18
pkg/rpc/protos/service_ns_record_hourly_stat.proto
Normal file
@@ -0,0 +1,18 @@
|
||||
syntax = "proto3";
|
||||
option go_package = "./pb";
|
||||
|
||||
package pb;
|
||||
|
||||
import "models/model_ns_record_hourly_stat.proto";
|
||||
import "models/rpc_messages.proto";
|
||||
|
||||
// NS记录小时统计
|
||||
service NSRecordHourlyStatService {
|
||||
// 上传统计
|
||||
rpc uploadNSRecordHourlyStats (UploadNSRecordHourlyStatsRequest) returns (RPCSuccess);
|
||||
}
|
||||
|
||||
// 上传统计
|
||||
message UploadNSRecordHourlyStatsRequest {
|
||||
repeated NSRecordHourlyStat stats = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user