57 lines
2.1 KiB
Protocol Buffer
57 lines
2.1 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
import "Base.proto" ;
|
|
|
|
option java_multiple_files = false;
|
|
option java_package = "com.yuandian.dataflow.proto.msgtype";
|
|
option go_package = "../grpc-gen;grpcgen";
|
|
|
|
|
|
package dataflow;
|
|
|
|
|
|
message ApmBaseDataFlow {
|
|
|
|
int32 table_id = 1; //编号28
|
|
uint32 probe_if = 2; //探针抓包口
|
|
uint32 tuple_source = 3; //四元组-源端口
|
|
uint32 tuple_dest = 4; //四元组-目的端口
|
|
IPAddress tuple_saddr = 5; //四元组-源ip地址
|
|
IPAddress tuple_daddr = 6; //四元组-目的ip地址
|
|
string src_mac = 7; //源mac地址
|
|
string dst_mac = 8; //目的mac地址
|
|
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; //客户端rtt
|
|
uint32 server_rtt = 17; //服务端rtt
|
|
uint32 user_response_time = 18; //用户响应时间
|
|
uint32 server_response_time = 19; //服务端响应时间
|
|
uint32 con_fail = 20; //tcp会话连接失败数
|
|
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; //
|
|
bytes protocol = 37; //协议类型
|
|
|
|
}
|
|
|
|
|
|
|