Merge branch 'release/v1.0.1'

This commit is contained in:
eson 2022-06-29 09:47:03 +08:00
commit a21c6058b4
15 changed files with 365 additions and 687 deletions

View File

@ -10,164 +10,44 @@ package dataflow;
message ApmBaseDataFlow { message ApmBaseDataFlow {
int32 table_id = 1; int32 table_id = 1; //28
uint32 probe_if = 2;
uint32 tuple_source = 3;
uint32 tuple_dest = 4;
uint32 tuple_saddr = 5;
uint32 tuple_daddr = 6;
string src_mac = 7;
string dst_mac = 8;
uint32 vlan_id = 9;
uint32 start_tm_tv_sec = 10;
uint32 start_tm_tv_usec = 11;
uint32 total_bytes = 12;
uint32 total_packets = 13;
uint32 total_drop_packets = 14;
uint32 retran_time_delay = 15;
uint32 client_rtt = 16;
uint32 server_rtt = 17;
uint32 user_response_time = 18;
uint32 server_response_time = 19;
uint32 con_fail = 20;
uint32 bytes_in = 21;
uint32 bytes_out = 22;
uint32 time_flag = 23;
uint32 end_tm_tv_sec = 24;
uint32 end_tm_tv_usec = 25;
uint32 respon_num = 26;
uint32 cs_window = 27;
uint32 sc_window = 28;
uint32 cs_reset = 29;
uint32 sc_reset = 30;
uint32 cs_retran = 31;
uint32 sc_retran = 32;
uint32 conn_setup_tm = 33;
uint32 new_session = 34;
uint32 cs_alert = 35;
uint32 sc_alert = 36;
string protocol = 37;
int32 probe_if = 2;
//
/**
*
*/
int32 request_port = 3;
/**
*
*/
int32 response_port = 4;
/**
* IP
*/
int32 request_ip = 5;
/**
* ip
*/
int32 response_ip = 6;
/**
* mac
*/
int64 src_mac = 7;
/**
* mac
*/
int64 dst_mac = 8;
/**
*
*/
int32 vlan_id = 9;
int32 tv_sec = 10;
int32 tv_usec = 11;
/**
*
*/
int32 start_tm = 12;
/**
*
*/
int32 total_bytes = 13;
/**
*
*/
int32 total_packets = 14;
/**
*
*/
int32 total_drop_packets = 15;
/**
*
*/
int32 retran_time_delay = 16;
/**
* rtt
*/
int32 client_rtt = 17;
/**
* Rtt
*/
int32 server_rtt = 18;
/**
*
*/
int32 user_response_time = 19;
/**
*
*/
int32 server_response_time = 20;
/**
* tcp回话连接失败数
*/
int32 con_fail = 21;
/**
*
*/
// long reset = 22;
/**
*
*/
int32 bytes_in = 23;
/**
*
*/
int32 bytes_out = 24;
/**
*
*/
int32 time_flag = 25;
/**
*
*/
int32 end_tm = 26;
/**
*
*/
int32 end_tm_usec = 27;
/**
*
*/
int32 respon_num = 28;
/**
*
*/
int32 cs_window = 29;
/**
*
*/
int32 sc_window = 30;
/**
*
*/
int32 cs_reset = 31;
/**
*
*/
int32 sc_reset = 32;
/**
*
*/
int32 cs_retran = 33;
/**
*
*/
int32 sc_retran = 34;
/**
*
*/
int32 conn_setup_tm = 35;
/**
*
*/
int32 new_session = 36;
int32 cs_alert = 37;
int32 sc_alert = 38;
string protocal = 39;
} }

View File

@ -8,28 +8,28 @@ option go_package = "../grpc-gen;grpcgen";
package dataflow; package dataflow;
message AppFlow { message AppFlow {
int32 table_id = 1; int32 table_id = 1; //17
int32 src_ip = 2; uint32 src_ip = 2
int32 src_port = 3; uint32 src_port = 3;
int32 dst_ip = 4; uint32 dst_ip = 4;
int32 dst_port = 5; uint32 dst_port = 5
int32 start_tv_sec = 6; uint32 s_tv_sec = 6;
int32 start_tv_usec = 7; uint32 s_tv_usec = 7;
int32 last_tv_sec = 8; uint32 l_tv_sec = 8;
int32 last_tv_usec = 9; uint32 l_tv_usec = 9;
int32 end_tv_sec = 10; uint32 e_tv_sec = 10;
int32 end_tv_usec = 11; uint32 e_tv_usec = 11;
int32 input_packets = 12; uint32 input_packets = 12;
int32 output_packets = 13; uint32 output_packets = 13;
int32 input_bytes = 14; uint32 input_bytes = 14;
int32 output_bytes = 15; uint32 output_bytes = 15;
string protocaol = 16; string protocol = 16;
int32 app_id = 17; uint32 app_id = 17;
int32 app_group_id = 18; uint32 app_group_id = 18;
int32 probe_if = 19; uint32 probe_id = 19;
int32 app_style = 20; uint32 app_style = 20;
int32 time_flag = 21; uint32 time_flag = 21;
int32 vlan_id = 22; int32 vlan_id = 22;
int32 mpls_lable = 23; int32 mpls_label = 23;
int32 tos = 24; int32 tos = 24;
} }

View File

@ -9,24 +9,23 @@ package dataflow;
message BacktrackingFlow { message BacktrackingFlow {
int32 table_id = 1; int32 table_id = 1; //20
int64 mac_src = 2; //MAC 8 int64 mac_src = 2;
int64 mac_dst = 3; //MAC 8 int64 mac_dst = 3;
int64 ip_src = 4; //IP 8 int64 ip_src = 4;
int64 ip_dst = 5; //IP 8 int64 ip_dst = 5;
int32 port_src = 6; //-1 int32 port_src = 6;
int32 port_dst = 7; //-1 int32 port_dst = 7;
int32 l3_proto = 8; //ID-1 int32 l3_proto = 8;
int32 l4_proto = 9; //ID-1 int32 l4_proto = 9;
int32 tos = 10; //Tos-1 int32 tos = 10;
int32 vlan_id = 11; //vlan ID-1 int32 vlan_id = 11;
uint64 bytes = 12;
int64 bytes = 12; // 8 uint64 packets = 13;
int64 packets = 13; // 8 uint64 tcp_sp = 14;
int64 tcp_sp = 14; // 8 tcp同步包数 uint64 tcp_scpn = 15;
int64 tcp_scpn = 15;// 8 tcp同步确认包数 uint64 tcp_srp = 16;
int64 tcp_srp = 16; // 8 tcp同步重置包数 uint32 app_id = 17;
int32 app_id = 17; // 4 appID uint32 app_group_id = 18;
int32 app_group_id = 18;// 4 app组ID int32 mpls_label = 19;
int32 mpls_label = 19;// 4
} }

View File

@ -9,17 +9,17 @@ option java_package = "com.yuandian.dataflow.proto";
option go_package = "../grpc-gen;grpcgen"; option go_package = "../grpc-gen;grpcgen";
package dataflow; package dataflow;
message Response { message Response {
int32 code = 1; int32 code = 1; //
string message = 2; string message = 2; //
repeated google.protobuf.Any packets = 4; repeated google.protobuf.Any packets = 4; //
} }
message Request { message Request {
int32 type = 1; // . 1. int32 type = 1; // . 1.
string version = 2; // . . 使 string version = 2; // . . 使
repeated google.protobuf.Any param = 3; repeated google.protobuf.Any param = 3; // . 使
} }
service CollectPacketsServer { service CollectPacketsServer {

View File

@ -1,27 +0,0 @@
syntax = "proto3";
option java_multiple_files = false;
option java_package = "com.yuandian.dataflow.proto.msgtype";
option go_package = "../grpc-gen;grpcgen";
package dataflow;
message BasicTrafficFlow {
int32 table_id = 1;
int32 cap_port = 2;
int32 request_port = 3;
int32 response_port = 4;
int32 request_ip = 5;
int32 response_ip = 6;
int32 start_time = 7;
int32 total_bytes = 8;
int32 total_packets = 9;
int32 spackets64 = 10;
int32 spackets128 = 11;
int32 spackets256 = 12;
int32 spackets512 = 13;
int32 spackets1024 = 14;
int32 spackets = 15;
int32 send_time = 16;
}

View File

@ -1,34 +0,0 @@
syntax = "proto3";
option java_multiple_files = false;
option java_package = "com.yuandian.dataflow.proto.msgtype";
option go_package = "../grpc-gen;grpcgen";
package dataflow;
message BusinessBodyData {
int32 table_id = 1;
string relvance_data_id = 2;
int64 request_ip = 3;
int32 request_port = 4;
int64 response_ip = 5;
int32 response_port = 6;
int64 start_tv_sec = 7;//
int64 start_tv_usec = 8;//
int64 end_tv_sec = 9;//
int64 end_tv_usec = 10;//
string resource_code = 11;
string no_parameter_recognition = 12;
string original_recognition = 13;
string request_cookie = 14;
string request_body_context = 15;
string response_body_context = 16;
int32 filter_id = 17;
string business_detail_mesg = 18;
}

View File

@ -10,68 +10,55 @@ package dataflow;
message BussFlowDb { message BussFlowDb {
int32 table_id = 1; int32 table_id = 1; //24
uint32 msg_type = 2;
// redis资源归并,() string msg_version = 3;
string redisRegex = 2; uint32 msg_seq = 4;
uint32 msg_len = 5;
uint64 src_mac = 6;
uint64 dst_mac = 7;
uint32 vlan_id = 8;
uint32 tos = 9;
uint32 retran_count = 10;
uint32 reset_count = 11;
uint32 zerowin_count = 12;
uint32 protocol = 13;
uint32 response_bytes = 14;
uint32 request_bytes = 15;
uint32 response_packets = 16;
uint32 request_packets = 17;
string seq_ack = 18;
uint32 recog_status = 19;
uint32 probe_if = 20;
string channel = 21;
string dbname = 22;
uint32 request_ip = 23;
uint32 request_port = 24;
uint32 response_ip = 25;
uint32 response_port = 26;
int64 status = 27;
int64 server_translate_time = 28;
int64 client_translate_time = 29;
int64 server_response_time = 30;
uint32 server_response_start_time_tv_sec = 31;
uint32 server_response_start_time_tv_usec = 32;
uint32 server_response_end_time_tv_sec = 33;
uint32 server_response_end_time_tv_usec = 34;
uint32 start_time_tv_sec = 35;
uint32 start_time_tv_usec = 36;
uint32 end_time_tv_sec = 37;
uint32 end_time_tv_usec = 38;
int32 is_uncomplete = 39;
uint32 time_flag = 40;
uint32 sql_len = 41;
uint32 detail_msg_len = 42;
uint32 req_len = 43;
uint32 res_len = 44;
uint32 reserved_len = 45;
string sql = 46;
string bussiness_detail_mesg = 47;
string req_data = 48;
string res_data = 49;
string reserved = 50;
string id = 3; //id
int64 msg_len = 4; //
int32 msg_type = 5; //
int64 src_mac = 6;
int64 dst_mac = 7;
int32 protocol = 8; //
string session_serial_number = 9;//
string buss_type = 10;//C_01
int64 request_ip = 11;//Web客户端IP
int32 request_port = 12;//Web客户端端口
int64 response_ip = 13;//Web服务器IP
int32 response_port = 14;//Web服务器端口
int64 start_tv_sec = 15;//Web开始时间秒
int64 start_tv_usec = 16;//
int64 end_tv_sec = 17;//
int64 end_tv_usec = 18;//
string disc_resource_ident = 19; //weburl mid:apiBody dbsql
string name = 20; //web: middinterfaceName db:db_name
//web midd
string session_id = 21;//sessionid
int32 request_msg_length = 22; //
string request_msg_detail = 23; //
int32 response_msg_length = 24; //
string response_msg_detail = 25; //
//web段
string reter_url = 26;
string x_requested_with = 27;
int64 req_method = 28; //
string content_type = 29; //
string accept = 30; //jieshou
int32 req_cookie_leng = 31;//cookie报文长度
string req_cookie_detail = 32;//cookie报文详情
int64 t_intodb_time = 33;
int32 load_or_step = 34; //0: 1 2web段数据
string business_detail_mesg = 35;
string bussiness_key_mesg = 36; // key=val|key=val....
int32 isUncomplete = 37; // 0 1
int32 deal_state = 38; // 1
int32 server_res_code = 39;
int64 server_response_time = 40;
int64 client_translate_time = 41;
string browser = 42;
int64 server_start_tv_sec = 43;
int64 server_start_tv_usec = 44;
int64 server_end_tv_sec = 45;
int64 server_end_tv_usec = 46;
string probe_ip = 47;
int64 probe_if = 48;
int64 server_translate_time = 49;
int64 time_flag = 50;
string base_code = 51;
string ori_sql = 52;
string reserved = 53;
int64 bytes_in = 54;
int64 bytes_out = 55;
int32 package_in = 56;
int32 package_out = 57;
string data_id = 58;
int32 filter_id = 59;
} }

View File

@ -8,36 +8,35 @@ option go_package = "../grpc-gen;grpcgen";
package dataflow; package dataflow;
message BussFlowExternal { message BussFlowExternal {
int32 table_id = 1; int32 table_id = 1; //25
string id = 2; uint32 msg_type = 2;
int64 probe_if = 3;// uint32 msg_version = 3;
string channel = 4;//, uint32 msg_seq = 4;
string system_name = 5; // uint32 msg_len = 5;
string interface_id = 6;// uint64 src_mac = 6;
string session_id = 7;//sessionid uint64 dst_mac = 7;
string phone_id = 8;// uint32 request_ip = 8;
string net_type = 9; uint32 request_port = 9;
string net_segment = 10;//(-web) uint32 response_ip = 10;
int64 request_ip = 11;//Web客户端IP uint32 response_port = 11;
int64 request_port = 12;//Web客户端端口 uint32 probeif = 12;
int64 response_ip = 13;//Web服务器IP uint32 protocol = 13;
int64 response_port = 14;//Web服务器端口 uint32 start_time_tv_sec = 14;
uint32 start_time_tv_usec = 15;
int64 start_tv_sec = 15;//Web开始时间秒 uint32 end_time_tv_sec = 16;
int64 start_tv_usec = 16;// uint32 end_time_tv_usec = 17;
int64 end_tv_sec = 17;// uint32 req_len = 18;
int64 end_tv_usec = 18;// uint32 res_len = 19;
uint32 busi_msg_len = 20;
int32 deal_state = 19;//Web操作成功/10 uint32 key_msg_len = 21;
int64 server_translate_time = 20;//Web服务器传输耗时 uint32 detail_msg_len = 22;
int64 server_response_time = 21;//Web服务器响应时间 uint32 remain_len = 23;
string begin_url = 22;//url string busi_code = 24;
string operating_sytem = 23;// string sessionid = 25;
int32 server_res_code = 24; //Web系统返回码 string req_data = 26;
string browser = 25;// string res_data = 27;
string business_detail_mesg = 26;// string busi_msg = 28;
int64 insert_time = 27;//? 使 string busi_key_msg = 29;
string business_involve_msg = 28; // string busi_detail_msg = 30;
int32 is_uncomplete = 29; string remain_data = 31;
int64 time_flag = 30;
} }

View File

@ -8,66 +8,57 @@ option go_package = "../grpc-gen;grpcgen";
package dataflow; package dataflow;
message BussFlowMidd { message BussFlowMidd {
int32 table_id = 1; int32 table_id = 1; //23
string id = 2; //id uint32 msg_type = 2;
int64 src_mac = 3; string msg_version = 3;
int64 dst_mac = 4; uint32 msg_seq = 4;
int32 msg_len = 5; // uint32 msg_len = 5;
int32 msg_type = 6; // uint64 src_mac = 6;
int32 protocol = 7; // uint64 dst_mac = 7;
string session_serial_number = 8;// uint32 vlan_id = 8;
string buss_type = 9;//C_01 uint32 tos = 9;
string net_segment = 10;//(-web) uint32 retran_count = 10;
int64 request_ip = 11;//Web客户端IP uint32 reset_count = 11;
int32 request_port = 12;//Web客户端端口 uint32 zerowin_count = 12;
int64 response_ip = 13;//Web服务器IP uint32 protocol = 13;
int32 response_port = 14;//Web服务器端口 uint32 response_bytes = 14;
int64 start_tv_sec = 15;//Web开始时间秒 uint32 request_bytes = 15;
int64 start_tv_usec = 16;// uint32 response_packets = 16;
int64 end_tv_sec = 17;// uint32 request_packets = 17;
int64 end_tv_usec = 18;// string seq_ack = 18;
string disc_resource_ident = 19; //weburl mid:apiBody dbsql uint32 recog_status = 19;
string name = 20; //web: middinterfaceName db:db_name uint32 probe_if = 20;
//web midd string channel = 21;
string session_id = 21;//sessionid uint32 request_ip = 22;
int32 request_msg_length = 22; // uint32 request_port = 23;
string request_msg_detail = 23; // uint32 response_ip = 24;
int32 response_msg_length = 24; // uint32 response_port = 25;
string response_msg_detail = 25; // uint32 start_time_tv_sec = 26;
//web段 uint32 start_time_tv_usec = 27;
string reter_url = 26; uint32 end_time_tv_sec = 28;
string x_requested_with = 27; uint32 end_time_tv_usec = 29;
int64 req_method = 28; // uint32 deal_state = 30;
string content_type = 29; // uint32 server_res_code = 31;
string accept = 30; //jieshou int64 server_translate_time = 32;
int32 req_cookie_leng = 31;//cookie报文长度 uint32 server_response_start_time_tv_sec = 33;
string req_cookie_detail = 32;//cookie报文详情 uint32 server_response_start_time_tv_usec = 34;
int64 t_intodb_time = 33; uint32 server_response_end_time_tv_sec = 35;
int32 load_or_step = 34; //0: 1 2web段数据 uint32 server_response_end_time_tv_usec = 36;
string business_detail_mesg = 35; int64 server_response_time = 37;
string bussiness_key_mesg = 36; // key=val|key=val.... int64 client_translate_time = 38;
int32 is_uncomplete = 37; // 0 1 int32 is_uncomplete = 39;
int32 deal_state = 38; // 1 uint32 time_flag = 40;
int32 server_res_code = 39; uint32 detail_msg_len = 41;
int64 server_response_time = 40; uint32 key_msg_len = 42;
int64 client_translate_time = 41; uint32 api_len = 43;
string browser = 42; uint32 req_len = 44;
int32 server_start_tv_sec = 43; uint32 res_len = 45;
int64 server_start_tv_usec = 44; uint32 remain_len = 46;
int32 server_end_tv_sec = 45; string bussiness_detail_mesg = 47;
int64 server_end_tv_usec = 46; string bussiness_key_mesg = 48;
string probe_ip = 47; string api = 49;
int32 probe_if = 48; string req_data = 50;
int64 server_translate_time = 49; string res_data = 51;
int64 time_flag = 50; string remain_data = 52;
string channel = 51;
string base_code = 52;
string ori_api = 53;
string remain_data = 54;
int64 bytes_in = 55;
int64 bytes_out = 56;
int32 package_in = 57;
int32 package_out = 58;
string data_id = 59;
int32 filter_id = 60;
} }

View File

@ -1,42 +0,0 @@
syntax = "proto3";
option java_multiple_files = false;
option java_package = "com.yuandian.dataflow.proto.msgtype";
option go_package = "../grpc-gen;grpcgen";
package dataflow;
message BussFlowOrl {
int32 table_id = 1;
int32 msg_type = 2;
int32 msg_version = 3;
int32 msg_seq = 4;
int32 msg_len = 5;
int64 request_mac = 6;
int64 response_mac = 7;
int64 request_ip = 8;
int32 request_port = 9;
int64 response_ip = 10;
int32 response_port = 11;
int32 probe_if = 12;
int32 protocol = 13;
int64 start_tv_sec = 14;//Web开始时间秒
int64 start_tv_usec = 15;//
int64 end_tv_sec = 16;//
int64 end_tv_usec = 17;//
int32 req_len = 18;
int32 res_len = 19;
int32 busi_msg_len = 20;
int32 key_msg_len = 21;
int32 detail_msg_len = 22;
int32 remain_len = 23;
string business_code = 24;
string session_id = 25;
string req_data = 26;
string res_data = 27;
string busi_msg = 28;
string busi_key_msg = 29;
string busi_detail_msg = 30;
string remain_data = 31;
}

View File

@ -8,75 +8,70 @@ option go_package = "../grpc-gen;grpcgen";
package dataflow; package dataflow;
message BussFlowWeb { message BussFlowWeb {
int32 table_id = 1; int32 table_id = 1; //22
string id = 2; //id uint32 msg_type = 2;
int32 msg_len = 3; // string msg_version = 3;
int32 msg_type = 4; // uint32 msg_seq = 4;
int64 src_mac = 5; uint32 msg_len = 5;
int64 dst_mac = 6; uint64 src_mac = 6;
int32 protocol = 7; // uint64 dst_mac = 7;
string session_serial_number = 8;// uint32 vlan_id = 8;
string buss_type = 9;//C_01 uint32 tos = 9;
// string net_segment = 10;//(-web) uint32 retran_count = 10;
int64 request_ip = 11;//Web客户端IP uint32 reset_count = 11;
int32 request_port = 12;//Web客户端端口 uint32 zerowin_count = 12;
int64 response_ip = 13;//Web服务器IP uint32 protocol = 13;
int32 response_port = 14;//Web服务器端口 uint32 response_bytes = 14;
int64 start_tv_sec = 15;//Web开始时间秒 uint32 request_bytes = 15;
int64 start_tv_usec = 16;// uint32 response_packets = 16;
int64 end_tv_sec = 17;// uint32 request_packets = 17;
int64 end_tv_usec = 18;// string seq_ack = 18;
string disc_resource_ident = 19; //weburl mid:apiBody dbsql uint32 recog_status = 19;
string operating_system = 20; //web: middinterfaceName db:db_name uint32 req_method = 20;
//web midd string content_type = 21;
string session_id = 21;//sessionid string accept = 22;
int32 request_msg_length = 22; // uint32 probe_if = 23;
string request_msg_detail = 23; // string channel = 24;
int32 response_msg_length = 24; // string sessionid = 25;
string response_msg_detail = 25; // uint32 request_ip = 26;
//web段 uint32 request_port = 27;
string reter_url = 26; uint32 response_ip = 28;
string x_requested_with = 27; uint32 response_port = 29;
int64 req_method = 28; // uint32 start_time_tv_sec = 30;
string content_type = 29; // uint32 start_time_tv_usec = 31;
string accept = 30; //jieshou uint32 end_time_tv_sec = 32;
int32 req_cookie_leng = 31;//cookie报文长度 uint32 end_time_tv_usec = 33;
string req_cookie_detail = 32;//cookie报文详情 int64 server_translate_time = 34;
int64 t_intodb_time = 33; uint32 server_response_start_time_tv_sec = 35;
int32 load_or_step = 34; //0: 1 2web段数据 uint32 server_response_start_time_tv_usec = 36;
string business_detail_mesg = 35; uint32 server_response_end_time_tv_sec = 37;
string bussiness_key_mesg = 36; // key=val|key=val.... uint32 server_response_end_time_tv_usec = 38;
int32 is_uncomplete = 37; // 0 1 int64 server_response_time = 39;
int32 deal_state = 38; // 1 int64 client_translate_time = 40;
int32 server_res_code = 39; int64 locate_server_translate_time = 41;
int64 server_response_time = 40; int64 locate_server_response_time = 42;
int64 client_translate_time = 41; int64 locate_client_translate_time = 43;
string browser = 42; string x_requested_with = 44;
int32 server_start_tv_sec = 43; string operating_sytem = 45;
int64 server_start_tv_usec = 44; uint32 server_res_code = 46;
int32 server_end_tv_sec = 45; string browser = 47;
int64 server_end_tv_usec = 46; int32 is_uncomplete = 48;
string probe_ip = 47; uint32 time_flag = 49;
int32 probe_if = 48; uint32 detail_msg_len = 50;
int64 server_translate_time = 49; uint32 key_msg_len = 51;
int64 time_flag = 50; uint32 req_len = 52;
string channel = 51; uint32 res_len = 53;
string base_code = 52; uint32 cookie_len = 54;
string ori_url = 53; uint32 begin_url_len = 55;
string remain_data = 54; uint32 refer_url_len = 56;
int64 bytes_in = 55; uint32 remain_len = 57;
int64 bytes_out = 56; string bussiness_detail_mesg = 58;
int32 package_in = 57; string bussiness_key_mesg = 59;
int32 package_out = 58; string req_data = 60;
string res_data = 61;
string cookie_data = 62;
string begin_url = 63;
string refer_url = 64;
string remain_data = 65;
string data_id = 59;
int32 filter_id = 60;
string white_character = 61;
// tokenId
string token_id = 62;
// ( 2 )
int32 segment_id = 63;
} }

View File

@ -1,62 +0,0 @@
syntax = "proto3";
option java_multiple_files = false;
option java_package = "com.yuandian.dataflow.proto.msgtype";
option go_package = "../grpc-gen;grpcgen";
package dataflow;
message DataFlow {
int32 table_id = 1;
string id = 2;
int32 msg_type = 3; //
int32 msg_version = 4; //
int32 msg_seq = 5; //
int32 msg_len = 6; //
int32 probe_if = 7; //
int64 timestamp = 8; //
int64 mac_src = 9; //
int64 mac_dst = 10; //
int32 vlan_id = 11; //vlan_id
int64 l3_proto = 12; //l3层协议
int64 l4_proto = 13; //l4层协议
int32 tos = 14; //tos
int32 retran_count = 15; //
int32 reset_count = 16; //
int32 zerowin_count = 17; //
int32 protocol = 18; //
int64 seq = 19;
int64 ack = 20;
int32 recog_status = 21; //
int64 bytes = 22; //
int64 packets = 23; //
int32 start_tv_sec = 24;//Web开始时间秒
int64 start_tv_usec = 25;//
int32 end_tv_sec = 26;//
int64 end_tv_usec = 27;//
int32 server_start_tv_sec = 28;//
int64 server_start_tv_usec = 29;//
int32 server_end_tv_sec = 30;//
int64 server_end_tv_usec = 31;//
int64 server_response_time = 32;//Web服务器响应时间
int64 client_translate_time = 33;//Web客户端传输耗时
int64 server_translate_time = 34;//Web服务器传输耗时
int64 bytes_in = 35;
int64 bytes_out = 36;
int64 packets_in = 37;
int64 packets_out = 38;
int64 ip_src = 39; //IP
int64 ip_dst = 40; //IP
int64 port_src = 41; //
int64 port_dst = 42; //
int64 probeIP = 43; //IP
int64 intodb_time = 44;
int64 count = 45; // 1
}

View File

@ -8,44 +8,44 @@ option go_package = "../grpc-gen;grpcgen";
package dataflow; package dataflow;
message QoeFlow { message QoeFlow {
int32 table_id = 1; int32 table_id = 1; //18
// uint32 src_ip = 2;
int32 src_ip = 2; //uint32_t 4 ip地址 uint32 dst_ip = 3;
int32 dst_ip = 3; //uint32_t 4 ip地址 uint32 s_tv_sec = 4;
int32 stv_sec = 4; //uint32_t 4 uint32 s_tv_usec = 5;
int32 stv_usec = 5; //uint32_t 4 uint32 l_tv_sec = 6;
int32 ltv_sec = 6; //uint32_t 4 uint32 l_tv_usec = 7;
int32 ltv_usec = 7; //uint32_t 4 uint32 dst2_respon_num = 8;
int32 dst2_respon_num = 8; //uint32_t 4 uint32 dst2_fast = 9;
int32 dst2_fast = 9; //uint32_t 4 uint32 dst2_fast_expected = 10;
int32 dst2_fast_expected = 10; //uint32_t 4 uint32 dst2_expected_degrated = 11;
int32 dst2_expected_degrated = 11; //uint32_t 4 uint32 dst2_degrated_service = 12;
int32 dst2_degrated_service = 12; //uint32_t 4 uint32 dst2_service_availability = 13;
int32 dst2_service_availability = 13; //uint32_t 4 uint32 dst2_respon_timeout = 14;
int32 dst2_respon_timeout = 14; //uint32_t 4 uint32 dst2_respon_success = 15;
int32 dst2_respon_success = 15; //uint32_t 4 uint32 dst2_respon_fail = 16;
int32 dst2_respon_fail = 16; //uint32_t 4 uint32 dst2_respin_peek = 17;
int32 dst2_respon_peek = 17; //uint32_t 4 uint32 dst2_respon_average = 18;
int32 dst2_respon_average = 18; //uint32_t 4 uint32 cs_window = 19;
int32 cs_window = 19; //uint32_t 4 uint32 sc_window = 20;
int32 sc_window = 20; //uint32_t 4 uint32 cs_reset = 21;
int32 cs_reset = 21; //uint32_t 4 uint32 sc_reset = 22;
int32 sc_reset = 22; //uint32_t 4 uint32 cs_retran = 23;
int32 cs_retran = 23; //uint32_t 4 uint32 sc_retran = 24;
int32 sc_retran = 24; //uint32_t 4 uint32 app_id = 25;
int32 app_id = 25; //uint32_t 4 Aphid uint32 app_group_id = 26;
int32 app_group_id = 26; //uint32_t 4 app组id uint32 probe_if = 27;
int32 probe_if = 27; //uint32_t 4 id uint32 app_style = 28;
int32 app_style = 28; //uint32_t 4 uint32 time_flag = 29;
int32 time_flag = 29; //uint32_t 4 uint32 conn_setup_tm = 30;
int32 conn_setup_tm = 30; //uint32_t 4 uint32 data_transfer_tm = 31;
int32 data_transfer_tm = 31; //uint32_t 4 uint32 retrans_delay_tm = 32;
int32 retrans_delay_tm = 32; //uint32_t 4 uint32 network_inbound = 33;
int32 network_inbound = 33; //uint32_t 4 c->s uint32 network_outbound = 34;
int32 network_outbound = 34; //uint32_t 4 s->c uint32 new_session = 35;
int32 new_session = 35; //uint32_t 4 uint32 user_events = 36;
int32 user_events = 36; //uint32_t 4 uint32 server_events = 37;
int32 server_events = 37; //uint32_t 4 uint32 conn_setup_peek = 38;
int32 conn_setup_peek = 38; //uint32_t 4 int32 vlan_id = 39;
int32 vlan_id = 39; //uint32_t 4
} }

View File

@ -1,51 +0,0 @@
syntax = "proto3";
option java_multiple_files = false;
option java_package = "com.yuandian.dataflow.proto.msgtype";
option go_package = "../grpc-gen;grpcgen";
package dataflow;
message SstFlow {
int32 table_id = 1;
int64 mac_src = 2; //MAC
int64 mac_dst = 3; //MAC
int64 ip_src = 4; //IP
int64 ip_dst = 5; //IP
int32 port_src = 6; //-1
int32 port_dst = 7; //-1
int32 l3_proto = 8; //ID-1
int32 l4_proto = 9; //ID-1
int32 tos = 10; //Tos-1
int32 vlan_id = 11; //vlan ID-1
int64 bytes = 12; //
int64 packets = 13; //
int64 packets_syn = 14; //TCP同步包数
int64 packets_syn_ack = 15; //TCP同步确认包数
int64 packets_syn_rst = 16; //TCP同步重置包数
int64 timestamp = 17; //,
int64 appid = 18;//ID
int64 app_group_id = 19;
int32 mpls_label = 20;
int64 pkts_syn_rx = 21; //tcp同步包
int64 pkts_syn_ack_rx = 22;//tcp同步确认包
int64 pkts_syn_rst_rx = 23; //tcp同步重置包
int64 pkts_fin = 24;//tcp终止包
int64 pkts_rst = 25;//tcp重置包
int64 bytes_rx = 26;//
int64 packets_rx = 27;//
int64 probe_time_sec = 28;
int64 probe_time = 29;
int64 create_time = 30;
int32 probe_if = 31;
}

43
UsrFlow.proto Normal file
View File

@ -0,0 +1,43 @@
syntax = "proto3";
option java_multiple_files = false;
option java_package = "com.yuandian.dataflow.proto.msgtype";
option go_package = "../grpc-gen;grpcgen";
package dataflow;
message UsrFlow {
int32 table_id = 1; //19
uint32 probe_if = 2;
uint32 server_ip = 3;
uint32 client_ip = 4;
uint32 client_port = 5;
uint32 client_rtt = 6;
uint32 server_rtt = 7;
uint32 s_tv_sec = 8;
uint32 s_tv_usec = 9;
uint32 e_tv_sec = 10;
uint32 e_tv_usec = 11;
uint32 server_think = 12;
uint32 page_size = 13;
uint32 app_id = 14;
uint32 app_group_id = 15;
string request_url = 16;
string referer_url = 17;
uint32 return_code = 18;
uint32 err_tv_sec = 19;
uint32 err_tv_usec = 20;
uint32 client_loss_pkt = 21;
uint32 server_loss_pkt = 22;
uint32 client_bytes = 23;
uint32 server_bytes = 24;
uint32 client_packets = 25;
uint32 server_packets = 26;
string user_agent = 27;
string content_type = 28;
uint32 request_transfer_tm = 29;
uint32 time_flag = 30;
}