Implemented checker as described in internal-docs/notes4coding/checker_design.md
This commit is contained in:
31
docs/examples/report.json
Normal file
31
docs/examples/report.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"summary": {
|
||||
"total_packets": 1,
|
||||
"total_findings": 1,
|
||||
"fatal": 0,
|
||||
"error": 1,
|
||||
"warn": 0,
|
||||
"info": 0
|
||||
},
|
||||
"findings": [
|
||||
{
|
||||
"pcap_index": 0,
|
||||
"event_id": 1,
|
||||
"severity": "error",
|
||||
"code": "expected_field_mismatch",
|
||||
"message": "Field mismatch for quantity",
|
||||
"flow": {
|
||||
"src_ip": "10.0.0.10",
|
||||
"src_port": 51012,
|
||||
"dst_ip": "10.0.0.20",
|
||||
"dst_port": 502
|
||||
},
|
||||
"observed": {
|
||||
"field": "quantity",
|
||||
"observed": 1,
|
||||
"expected": 2
|
||||
},
|
||||
"expected": null
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user