175 lines
2.2 KiB
Protocol Buffer
175 lines
2.2 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
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;
|
|
|
|
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;
|
|
}
|
|
|
|
|
|
|