2020-09-13 19:27:47 +08:00
|
|
|
|
syntax = "proto3";
|
|
|
|
|
|
option go_package = "./pb";
|
|
|
|
|
|
|
|
|
|
|
|
package pb;
|
|
|
|
|
|
|
2021-01-25 16:41:30 +08:00
|
|
|
|
import "models/model_node_cluster.proto";
|
|
|
|
|
|
import "models/model_server_group.proto";
|
|
|
|
|
|
import "models/model_user.proto";
|
|
|
|
|
|
import "models/model_server_name_auditing_result.proto";
|
2020-09-13 19:27:47 +08:00
|
|
|
|
|
|
|
|
|
|
message Server {
|
|
|
|
|
|
int64 id = 1;
|
2020-09-28 16:25:49 +08:00
|
|
|
|
bool isOn = 18;
|
2020-09-15 14:44:38 +08:00
|
|
|
|
string type = 2;
|
|
|
|
|
|
string name = 3;
|
|
|
|
|
|
string description = 4;
|
|
|
|
|
|
bytes includeNodes = 5;
|
|
|
|
|
|
bytes excludeNodes = 6;
|
|
|
|
|
|
int64 createdAt = 7;
|
2020-11-11 21:32:11 +08:00
|
|
|
|
string dnsName = 19;
|
2021-10-16 12:03:44 +08:00
|
|
|
|
bool supportCNAME = 23;
|
2021-11-09 15:36:31 +08:00
|
|
|
|
int64 userPlanId = 24;
|
2023-03-25 20:51:28 +08:00
|
|
|
|
int64 userId = 29; // 所属用户ID
|
2020-09-13 19:27:47 +08:00
|
|
|
|
|
2020-09-15 14:44:38 +08:00
|
|
|
|
// 配置相关
|
|
|
|
|
|
bytes config = 17;
|
2020-12-03 21:07:16 +08:00
|
|
|
|
bytes serverNamesJSON = 8;
|
2022-10-03 19:26:47 +08:00
|
|
|
|
string firstServerName = 33;
|
2022-09-30 19:04:36 +08:00
|
|
|
|
int32 countServerNames = 28;
|
2020-12-23 10:30:42 +08:00
|
|
|
|
bool isAuditing = 20;
|
2021-12-01 17:06:32 +08:00
|
|
|
|
int64 auditingAt = 25;
|
2020-12-23 10:30:42 +08:00
|
|
|
|
bytes auditingServerNamesJSON = 21;
|
|
|
|
|
|
ServerNameAuditingResult auditingResult = 22;
|
|
|
|
|
|
|
2020-09-15 14:44:38 +08:00
|
|
|
|
bytes httpJSON = 9;
|
|
|
|
|
|
bytes httpsJSON = 10;
|
|
|
|
|
|
bytes tcpJSON = 11;
|
|
|
|
|
|
bytes tlsJSON = 12;
|
|
|
|
|
|
bytes unixJSON = 13;
|
|
|
|
|
|
bytes udpJSON = 14;
|
|
|
|
|
|
int64 webId = 15;
|
2020-09-21 11:37:09 +08:00
|
|
|
|
bytes reverseProxyJSON = 16;
|
2020-09-15 14:44:38 +08:00
|
|
|
|
|
2023-07-07 18:51:41 +08:00
|
|
|
|
string bandwidthTime = 26; // 带宽时间
|
|
|
|
|
|
int64 bandwidthBytes = 27; // 带宽字节数
|
|
|
|
|
|
int64 countRequests = 34; // 最近(通常5分钟内)访问量
|
|
|
|
|
|
int64 countAttackRequests = 35; // 最近识别到的攻击访问量
|
2022-08-27 18:37:51 +08:00
|
|
|
|
|
2020-12-17 17:36:01 +08:00
|
|
|
|
NodeCluster nodeCluster = 30;
|
2021-05-25 17:49:05 +08:00
|
|
|
|
repeated ServerGroup serverGroups = 31;
|
2020-12-07 11:46:19 +08:00
|
|
|
|
User user = 32;
|
2020-09-13 19:27:47 +08:00
|
|
|
|
}
|