liuxiaolong
2019-12-14 d14cd01b7d110dbcc6e2ef98314bb129bd1f1103
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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;
}