syntax = "proto3";
|
|
package protomsg;
|
|
message LocalConfig {
|
string server_id = 1;
|
string server_name = 2;
|
int32 server_type = 3;
|
string server_ip = 4;//服务器ip,调用系统命令获取
|
string alarm_ip = 5;
|
int32 alarm_port = 6;
|
string web_pic_ip = 7;
|
int32 web_pic_port = 8;
|
string es_pic_ip = 9;
|
int32 es_pic_port = 10;
|
int32 cut_max_duration = 11;
|
int32 cut_min_duration = 12;
|
string reserved = 13;
|
|
string gate_way = 14;
|
string net_mask = 15;
|
int32 real_max = 16;//实时处理的最大路数
|
int32 alarm_threshold_type = 17;//报警阈值设置(1:按最高分,2:按阈值以上)
|
int32 alarm_threshold = 18;
|
}
|
|
message PollConfig {
|
string server_id = 1;//服务器id
|
int32 poll_period = 2;//轮询周期
|
int32 delay = 3;//延迟时间
|
bool enable = 4;//是否启用轮询
|
int32 pollChannelCount = 5;//轮询通道数量
|
}
|
|
message Cluster {
|
string cluster_id = 1;
|
string cluster_name = 2;
|
string password = 3;
|
string virtual_ip = 4;
|
repeated ClusterNode nodes = 5;
|
}
|
|
message ClusterNode {
|
string id = 1;
|
string cluster_id = 2;
|
string server_id = 3;
|
string server_name = 4;
|
string node_id = 5;
|
string node_ip = 6;
|
string create_time = 7;
|
}
|
|
message ResourceConfig {
|
int32 ipType = 1;
|
string serviceIp = 2;
|
string domain = 3;
|
int32 filePort = 4;
|
}
|