proto/AppFlow.proto

38 lines
1.3 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 AppFlow {
int32 table_id = 1; //编号17
IPAddress src_ip = 2; //< source ip
uint32 src_port = 3; //< source port
IPAddress dst_ip = 4; //< destination ip
uint32 dst_port = 5; //< destination port
uint32 s_tv_sec = 6; //< start time
uint32 s_tv_usec = 7; //< start time
uint32 l_tv_sec = 8; //< last update time
uint32 l_tv_usec = 9; //< last update time
uint32 e_tv_sec = 10; //< end time
uint32 e_tv_usec = 11; //< end time
uint32 input_packets = 12; //< input packets (dst->src)
uint32 output_packets = 13; //< output packets (src->dst)
uint32 input_bytes = 14; //< input bytes (dst->src)
uint32 output_bytes = 15; //< output bytes (src->dst)
bytes protocol = 16; //< protocol
uint32 app_id = 17; //< application idectification
uint32 app_group_id = 18; //< application group idectification
uint32 probe_if = 19; //探针编号
uint32 app_style = 20; //< application style
uint32 time_flag = 21; // <time flag
int32 vlan_id = 22; //链路编号
int32 mpls_label = 23; //
int32 tos = 24; //服务类型
}