-
Notifications
You must be signed in to change notification settings - Fork 15
/
packet_event_schema.json
130 lines (127 loc) · 3.08 KB
/
packet_event_schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{
"type": "object",
"required": [
"alias",
"source",
"packet_id",
"packet_event_id",
"packet_event_name",
"pkt_datalink",
"pkt_caplen",
"pkt_type",
"pkt_l3_offset",
"pkt_l4_offset",
"pkt_len",
"pkt_l4_len",
"thread_ts_usec"
],
"dependencies" : {
"flow_id" : [ "flow_packet_id", "flow_src_last_pkt_time", "flow_dst_last_pkt_time", "flow_idle_time" ]
},
"if": {
"properties": { "packet_event_name": { "enum": ["packet-flow"] } }
},
"then": {
"required": [ "thread_id", "flow_id", "flow_packet_id", "flow_src_last_pkt_time", "flow_dst_last_pkt_time", "flow_idle_time" ]
},
"else": {
"not": { "required": [ "thread_id", "vlan_id", "flow_id", "flow_packet_id", "flow_src_last_pkt_time", "flow_dst_last_pkt_time", "flow_idle_time" ] }
},
"properties": {
"alias": {
"type": "string"
},
"uuid": {
"type": "string"
},
"source": {
"type": "string"
},
"thread_id": {
"type": "number"
},
"packet_id": {
"type": "number",
"minimum": 0
},
"packet_event_id": {
"type": "number",
"minimum": 0,
"maximum": 2
},
"packet_event_name": {
"type": "string",
"enum": [
"invalid",
"packet",
"packet-flow"
]
},
"vlan_id": {
"type": "number",
"minimum": 0,
"maximum": 4095
},
"flow_id": {
"type": "number",
"minimum": 1
},
"flow_packet_id": {
"type": "number"
},
"flow_src_last_pkt_time": {
"type": "number",
"minimum": 0
},
"flow_dst_last_pkt_time": {
"type": "number",
"minimum": 0
},
"flow_idle_time": {
"type": "number",
"minimum": 1
},
"pkt_datalink": {
"type": "number",
"minimum": 0,
"maximum": 292
},
"pkt_caplen": {
"type": "number",
"minimum": 1,
"maximum": 65535
},
"pkt_type": {
"type": "number",
"minimum": 0,
"maximum": 65535
},
"pkt_l3_offset": {
"type": "number",
"minimum": 0,
"maximum": 65535
},
"pkt_l4_len": {
"type": "number",
"minimum": 0,
"maximum": 65535
},
"thread_ts_usec": {
"type": "number",
"minimum": 0
},
"pkt_l4_offset": {
"type": "number",
"minimum": 0,
"maximum": 65535
},
"pkt_len": {
"type": "number",
"minimum": 0
},
"pkt": {
"type": "string"
}
},
"additionalProperties": false
}