Compare commits

..

No commits in common. "master" and "v1.0.1" have entirely different histories.

11 changed files with 150 additions and 177 deletions

View File

@ -1,5 +0,0 @@
{
"protoc": {
"options": ["-I proto"]
}
}

View File

@ -1,7 +1,5 @@
syntax = "proto3"; syntax = "proto3";
import "Base.proto" ;
option java_multiple_files = false; option java_multiple_files = false;
option java_package = "com.yuandian.dataflow.proto.msgtype"; option java_package = "com.yuandian.dataflow.proto.msgtype";
option go_package = "../grpc-gen;grpcgen"; option go_package = "../grpc-gen;grpcgen";
@ -16,8 +14,8 @@ message ApmBaseDataFlow {
uint32 probe_if = 2; uint32 probe_if = 2;
uint32 tuple_source = 3; uint32 tuple_source = 3;
uint32 tuple_dest = 4; uint32 tuple_dest = 4;
IPAddress tuple_saddr = 5; uint32 tuple_saddr = 5;
IPAddress tuple_daddr = 6; uint32 tuple_daddr = 6;
string src_mac = 7; string src_mac = 7;
string dst_mac = 8; string dst_mac = 8;
uint32 vlan_id = 9; uint32 vlan_id = 9;

View File

@ -1,7 +1,5 @@
syntax = "proto3"; syntax = "proto3";
import "Base.proto" ;
option java_multiple_files = false; option java_multiple_files = false;
option java_package = "com.yuandian.dataflow.proto.msgtype"; option java_package = "com.yuandian.dataflow.proto.msgtype";
option go_package = "../grpc-gen;grpcgen"; option go_package = "../grpc-gen;grpcgen";
@ -11,10 +9,10 @@ package dataflow;
message AppFlow { message AppFlow {
int32 table_id = 1; //17 int32 table_id = 1; //17
IPAddress src_ip = 2; uint32 src_ip = 2
uint32 src_port = 3; uint32 src_port = 3;
IPAddress dst_ip = 4; uint32 dst_ip = 4;
uint32 dst_port = 5; uint32 dst_port = 5
uint32 s_tv_sec = 6; uint32 s_tv_sec = 6;
uint32 s_tv_usec = 7; uint32 s_tv_usec = 7;
uint32 l_tv_sec = 8; uint32 l_tv_sec = 8;
@ -28,7 +26,7 @@ message AppFlow {
string protocol = 16; string protocol = 16;
uint32 app_id = 17; uint32 app_id = 17;
uint32 app_group_id = 18; uint32 app_group_id = 18;
uint32 probe_if = 19; uint32 probe_id = 19;
uint32 app_style = 20; uint32 app_style = 20;
uint32 time_flag = 21; uint32 time_flag = 21;
int32 vlan_id = 22; int32 vlan_id = 22;

View File

@ -1,7 +1,5 @@
syntax = "proto3"; syntax = "proto3";
import "Base.proto" ;
option java_multiple_files = false; option java_multiple_files = false;
option java_package = "com.yuandian.dataflow.proto.msgtype"; option java_package = "com.yuandian.dataflow.proto.msgtype";
option go_package = "../grpc-gen;grpcgen"; option go_package = "../grpc-gen;grpcgen";
@ -14,8 +12,8 @@ message BacktrackingFlow {
int32 table_id = 1; //20 int32 table_id = 1; //20
int64 mac_src = 2; int64 mac_src = 2;
int64 mac_dst = 3; int64 mac_dst = 3;
IPAddress ip_src = 4; int64 ip_src = 4;
IPAddress ip_dst = 5; int64 ip_dst = 5;
int32 port_src = 6; int32 port_src = 6;
int32 port_dst = 7; int32 port_dst = 7;
int32 l3_proto = 8; int32 l3_proto = 8;

View File

@ -5,6 +5,7 @@ import "google/protobuf/any.proto";
option java_multiple_files = false; // option java_multiple_files = false; //
option java_package = "com.yuandian.dataflow.proto"; option java_package = "com.yuandian.dataflow.proto";
option go_package = "../grpc-gen;grpcgen"; option go_package = "../grpc-gen;grpcgen";
package dataflow; package dataflow;
@ -21,13 +22,6 @@ message Request {
repeated google.protobuf.Any param = 3; // . 使 repeated google.protobuf.Any param = 3; // . 使
} }
message IPAddress {
oneof IP {
bytes v4 = 1;
bytes v6 = 2;
}
}
service CollectPacketsServer { service CollectPacketsServer {
rpc GetPackets (Request) returns (stream Response); rpc GetPackets (Request) returns (stream Response);
} }

View File

@ -1,7 +1,5 @@
syntax = "proto3"; syntax = "proto3";
import "Base.proto" ;
option java_multiple_files = false; option java_multiple_files = false;
option java_package = "com.yuandian.dataflow.proto.msgtype"; option java_package = "com.yuandian.dataflow.proto.msgtype";
option go_package = "../grpc-gen;grpcgen"; option go_package = "../grpc-gen;grpcgen";
@ -34,9 +32,9 @@ uint32 recog_status = 19;
uint32 probe_if = 20; uint32 probe_if = 20;
string channel = 21; string channel = 21;
string dbname = 22; string dbname = 22;
IPAddress request_ip = 23; uint32 request_ip = 23;
uint32 request_port = 24; uint32 request_port = 24;
IPAddress response_ip = 25; uint32 response_ip = 25;
uint32 response_port = 26; uint32 response_port = 26;
int64 status = 27; int64 status = 27;
int64 server_translate_time = 28; int64 server_translate_time = 28;

View File

@ -1,7 +1,5 @@
syntax = "proto3"; syntax = "proto3";
import "Base.proto" ;
option java_multiple_files = false; option java_multiple_files = false;
option java_package = "com.yuandian.dataflow.proto.msgtype"; option java_package = "com.yuandian.dataflow.proto.msgtype";
option go_package = "../grpc-gen;grpcgen"; option go_package = "../grpc-gen;grpcgen";
@ -17,9 +15,9 @@ message BussFlowExternal {
uint32 msg_len = 5; uint32 msg_len = 5;
uint64 src_mac = 6; uint64 src_mac = 6;
uint64 dst_mac = 7; uint64 dst_mac = 7;
IPAddress request_ip = 8; uint32 request_ip = 8;
uint32 request_port = 9; uint32 request_port = 9;
IPAddress response_ip = 10; uint32 response_ip = 10;
uint32 response_port = 11; uint32 response_port = 11;
uint32 probeif = 12; uint32 probeif = 12;
uint32 protocol = 13; uint32 protocol = 13;

View File

@ -1,7 +1,5 @@
syntax = "proto3"; syntax = "proto3";
import "Base.proto" ;
option java_multiple_files = false; option java_multiple_files = false;
option java_package = "com.yuandian.dataflow.proto.msgtype"; option java_package = "com.yuandian.dataflow.proto.msgtype";
option go_package = "../grpc-gen;grpcgen"; option go_package = "../grpc-gen;grpcgen";
@ -11,55 +9,56 @@ package dataflow;
message BussFlowMidd { message BussFlowMidd {
int32 table_id = 1; //23 int32 table_id = 1; //23
uint32 msg_type = 2; // uint32 msg_type = 2;
string msg_version = 3; // string msg_version = 3;
uint32 msg_seq = 4; // uint32 msg_seq = 4;
uint32 msg_len = 5; // uint32 msg_len = 5;
uint64 src_mac = 6; // uint64 src_mac = 6;
uint64 dst_mac = 7; // uint64 dst_mac = 7;
uint32 vlan_id = 8; uint32 vlan_id = 8;
uint32 tos = 9; // uint32 tos = 9;
uint32 retran_count = 10; // uint32 retran_count = 10;
uint32 reset_count = 11; // uint32 reset_count = 11;
uint32 zerowin_count = 12; // uint32 zerowin_count = 12;
uint32 protocol = 13; // uint32 protocol = 13;
uint32 response_bytes = 14; // uint32 response_bytes = 14;
uint32 request_bytes = 15; // uint32 request_bytes = 15;
uint32 response_packets = 16; // uint32 response_packets = 16;
uint32 request_packets = 17; // uint32 request_packets = 17;
string seq_ack = 18; // string seq_ack = 18;
uint32 recog_status = 19; uint32 recog_status = 19;
uint32 probe_if = 20; // uint32 probe_if = 20;
string channel = 21; // string channel = 21;
IPAddress request_ip = 22; // uint32 request_ip = 22;
uint32 request_port = 23; // uint32 request_port = 23;
IPAddress response_ip = 24; // uint32 response_ip = 24;
uint32 response_port = 25; // uint32 response_port = 25;
uint32 start_time_tv_sec = 26; // uint32 start_time_tv_sec = 26;
uint32 start_time_tv_usec = 27; // uint32 start_time_tv_usec = 27;
uint32 end_time_tv_sec = 28; // uint32 end_time_tv_sec = 28;
uint32 end_time_tv_usec = 29; // uint32 end_time_tv_usec = 29;
uint32 deal_state = 30; uint32 deal_state = 30;
uint32 server_res_code = 31; // uint32 server_res_code = 31;
int64 server_translate_time = 32; // int64 server_translate_time = 32;
uint32 server_response_start_time_tv_sec = 33; // uint32 server_response_start_time_tv_sec = 33;
uint32 server_response_start_time_tv_usec = 34; // uint32 server_response_start_time_tv_usec = 34;
uint32 server_response_end_time_tv_sec = 35; // uint32 server_response_end_time_tv_sec = 35;
uint32 server_response_end_time_tv_usec = 36; // uint32 server_response_end_time_tv_usec = 36;
int64 server_response_time = 37; // int64 server_response_time = 37;
int64 client_translate_time = 38; // int64 client_translate_time = 38;
int32 is_uncomplete = 39; // int32 is_uncomplete = 39;
uint32 time_flag = 40; // uint32 time_flag = 40;
uint32 detail_msg_len = 41; // uint32 detail_msg_len = 41;
uint32 key_msg_len = 42; // uint32 key_msg_len = 42;
uint32 api_len = 43; // uint32 api_len = 43;
uint32 req_len = 44; // uint32 req_len = 44;
uint32 res_len = 45; // uint32 res_len = 45;
uint32 remain_len = 46; uint32 remain_len = 46;
string bussiness_detail_mesg = 47; // string bussiness_detail_mesg = 47;
string bussiness_key_mesg = 48; // string bussiness_key_mesg = 48;
string api = 49; // string api = 49;
string req_data = 50; // string req_data = 50;
string res_data = 51; // string res_data = 51;
string remain_data = 52; string remain_data = 52;
} }

View File

@ -1,7 +1,5 @@
syntax = "proto3"; syntax = "proto3";
import "Base.proto";
option java_multiple_files = false; option java_multiple_files = false;
option java_package = "com.yuandian.dataflow.proto.msgtype"; option java_package = "com.yuandian.dataflow.proto.msgtype";
option go_package = "../grpc-gen;grpcgen"; option go_package = "../grpc-gen;grpcgen";
@ -11,68 +9,69 @@ package dataflow;
message BussFlowWeb { message BussFlowWeb {
int32 table_id = 1; //22 int32 table_id = 1; //22
uint32 msg_type = 2; // uint32 msg_type = 2;
string msg_version = 3; // string msg_version = 3;
uint32 msg_seq = 4; // uint32 msg_seq = 4;
uint32 msg_len = 5; // uint32 msg_len = 5;
uint64 src_mac = 6; // uint64 src_mac = 6;
uint64 dst_mac = 7; // uint64 dst_mac = 7;
uint32 vlan_id = 8; uint32 vlan_id = 8;
uint32 tos = 9; // uint32 tos = 9;
uint32 retran_count = 10; // uint32 retran_count = 10;
uint32 reset_count = 11; // uint32 reset_count = 11;
uint32 zerowin_count = 12; // uint32 zerowin_count = 12;
uint32 protocol = 13; // uint32 protocol = 13;
uint32 response_bytes = 14; // uint32 response_bytes = 14;
uint32 request_bytes = 15; // uint32 request_bytes = 15;
uint32 response_packets = 16; // uint32 response_packets = 16;
uint32 request_packets = 17; // uint32 request_packets = 17;
string seq_ack = 18; // string seq_ack = 18;
uint32 recog_status = 19; uint32 recog_status = 19;
uint32 req_method = 20; // uint32 req_method = 20;
string content_type = 21; // string content_type = 21;
string accept = 22; // string accept = 22;
uint32 probe_if = 23; // uint32 probe_if = 23;
string channel = 24; // string channel = 24;
string sessionid = 25; //id string sessionid = 25;
IPAddress request_ip = 26; //ip地址 uint32 request_ip = 26;
uint32 request_port = 27; // uint32 request_port = 27;
IPAddress response_ip = 28; //ip地址 uint32 response_ip = 28;
uint32 response_port = 29; // uint32 response_port = 29;
uint32 start_time_tv_sec = 30; // uint32 start_time_tv_sec = 30;
uint32 start_time_tv_usec = 31; // uint32 start_time_tv_usec = 31;
uint32 end_time_tv_sec = 32; // uint32 end_time_tv_sec = 32;
uint32 end_time_tv_usec = 33; // uint32 end_time_tv_usec = 33;
int64 server_translate_time = 34; // int64 server_translate_time = 34;
uint32 server_response_start_time_tv_sec = 35; // uint32 server_response_start_time_tv_sec = 35;
uint32 server_response_start_time_tv_usec = 36; // uint32 server_response_start_time_tv_usec = 36;
uint32 server_response_end_time_tv_sec = 37; // uint32 server_response_end_time_tv_sec = 37;
uint32 server_response_end_time_tv_usec = 38; // uint32 server_response_end_time_tv_usec = 38;
int64 server_response_time = 39; // int64 server_response_time = 39;
int64 client_translate_time = 40; // int64 client_translate_time = 40;
int64 locate_server_translate_time = 41; // int64 locate_server_translate_time = 41;
int64 locate_server_response_time = 42; // int64 locate_server_response_time = 42;
int64 locate_client_translate_time = 43; // int64 locate_client_translate_time = 43;
string x_requested_with = 44; string x_requested_with = 44;
string operating_sytem = 45; // string operating_sytem = 45;
uint32 server_res_code = 46; // uint32 server_res_code = 46;
string browser = 47; // string browser = 47;
int32 is_uncomplete = 48; // int32 is_uncomplete = 48;
uint32 time_flag = 49; // uint32 time_flag = 49;
uint32 detail_msg_len = 50; // uint32 detail_msg_len = 50;
uint32 key_msg_len = 51; // uint32 key_msg_len = 51;
uint32 req_len = 52; // uint32 req_len = 52;
uint32 res_len = 53; // uint32 res_len = 53;
uint32 cookie_len = 54; //cookie长度 uint32 cookie_len = 54;
uint32 begin_url_len = 55; //URL长度 uint32 begin_url_len = 55;
uint32 refer_url_len = 56; //URL长度 uint32 refer_url_len = 56;
uint32 remain_len = 57; uint32 remain_len = 57;
string bussiness_detail_mesg = 58; // string bussiness_detail_mesg = 58;
string bussiness_key_mesg = 59; // string bussiness_key_mesg = 59;
string req_data = 60; // string req_data = 60;
string res_data = 61; // string res_data = 61;
string cookie_data = 62; //cookie详情报文 string cookie_data = 62;
string begin_url = 63; //url详情 string begin_url = 63;
string refer_url = 64; //url详情 string refer_url = 64;
string remain_data = 65; string remain_data = 65;
} }

View File

@ -1,7 +1,5 @@
syntax = "proto3"; syntax = "proto3";
import "Base.proto";
option java_multiple_files = false; option java_multiple_files = false;
option java_package = "com.yuandian.dataflow.proto.msgtype"; option java_package = "com.yuandian.dataflow.proto.msgtype";
option go_package = "../grpc-gen;grpcgen"; option go_package = "../grpc-gen;grpcgen";
@ -11,8 +9,8 @@ package dataflow;
message QoeFlow { message QoeFlow {
int32 table_id = 1; //18 int32 table_id = 1; //18
IPAddress src_ip = 2; uint32 src_ip = 2;
IPAddress dst_ip = 3; uint32 dst_ip = 3;
uint32 s_tv_sec = 4; uint32 s_tv_sec = 4;
uint32 s_tv_usec = 5; uint32 s_tv_usec = 5;
uint32 l_tv_sec = 6; uint32 l_tv_sec = 6;

View File

@ -1,7 +1,5 @@
syntax = "proto3"; syntax = "proto3";
import "Base.proto";
option java_multiple_files = false; option java_multiple_files = false;
option java_package = "com.yuandian.dataflow.proto.msgtype"; option java_package = "com.yuandian.dataflow.proto.msgtype";
option go_package = "../grpc-gen;grpcgen"; option go_package = "../grpc-gen;grpcgen";
@ -13,8 +11,8 @@ message UsrFlow {
int32 table_id = 1; //19 int32 table_id = 1; //19
uint32 probe_if = 2; uint32 probe_if = 2;
IPAddress server_ip = 3; uint32 server_ip = 3;
IPAddress client_ip = 4; uint32 client_ip = 4;
uint32 client_port = 5; uint32 client_port = 5;
uint32 client_rtt = 6; uint32 client_rtt = 6;
uint32 server_rtt = 7; uint32 server_rtt = 7;