实现基本的监控终端管理

This commit is contained in:
GoEdgeLab
2021-09-08 19:35:28 +08:00
parent 72826efbd1
commit b64e22466d
18 changed files with 2654 additions and 458 deletions

View File

@@ -3,6 +3,8 @@ option go_package = "./pb";
package pb;
import "models/model_report_node_group.proto";
message ReportNode {
int64 id = 1;
string uniqueId = 2;
@@ -14,4 +16,5 @@ message ReportNode {
bool isActive = 8;
bytes statusJSON = 9;
repeated string allowIPs = 10;
repeated ReportNodeGroup reportNodeGroups = 11;
}

View File

@@ -0,0 +1,11 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
// 监控节点分组
message ReportNodeGroup {
int64 id = 1;
string name = 2;
bool isOn = 3;
}

View File

@@ -13,4 +13,5 @@ message ReportResult {
float costMs = 7;
string error = 8;
int64 updatedAt = 9;
string level =10;
}

View File

@@ -0,0 +1,17 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
import "models/model_node_ip_address.proto";
// IP地址任务
message IPAddrReportTask {
string ip = 1;
int32 port = 2;
float costMs = 3;
string level = 4;
float connectivity = 5;
NodeIPAddress nodeIPAddress = 30;
}