2022-06-20 08:30:45 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2022-07-04 05:42:09 +00:00
|
|
|
import "Base.proto" ;
|
|
|
|
|
2022-06-20 08:30:45 +00:00
|
|
|
option java_multiple_files = false;
|
|
|
|
option java_package = "com.yuandian.dataflow.proto.msgtype";
|
|
|
|
option go_package = "../grpc-gen;grpcgen";
|
|
|
|
|
|
|
|
|
|
|
|
package dataflow;
|
|
|
|
|
|
|
|
|
|
|
|
message BussFlowDb {
|
|
|
|
|
2022-08-02 06:48:23 +00:00
|
|
|
int32 table_id = 1; //编号24
|
|
|
|
uint32 msg_type = 2; //消息类型
|
|
|
|
bytes msg_version = 3; //数据库版本
|
|
|
|
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; //输出数据报个数
|
|
|
|
bytes seq_ack = 18; //序列号和响应序号
|
|
|
|
uint32 recog_status = 19; //
|
|
|
|
uint32 probe_if = 20; //探针编号
|
|
|
|
string channel = 21; //通道
|
|
|
|
string dbname = 22; //数据库名称
|
|
|
|
IPAddress request_ip = 23; //请求ip地址
|
|
|
|
uint32 request_port = 24; //请求端口
|
|
|
|
IPAddress response_ip = 25; //响应ip地址
|
|
|
|
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; //sql字段的长度值
|
|
|
|
uint32 detail_msg_len = 42; //专属指标值得长度
|
|
|
|
uint32 req_len = 43; //请求的数据 长度
|
|
|
|
uint32 res_len = 44; //响应的数据长度
|
|
|
|
uint32 reserved_len = 45; //保留字段长度
|
|
|
|
bytes sql = 46; //sql语句
|
|
|
|
bytes bussiness_detail_mesg = 47; //专属指标值
|
|
|
|
bytes req_data = 48; //请求详情报文
|
|
|
|
bytes res_data = 49; //响应详情报文
|
|
|
|
bytes reserved = 50; //保留字段值
|
2022-06-20 08:30:45 +00:00
|
|
|
|
2022-07-12 07:15:21 +00:00
|
|
|
}
|