JSONEventFormat object to be sent to the remote service. TODO: Expand as needed: ebpf events, etc.
| 21 | // JSONEventFormat object to be sent to the remote service. |
| 22 | // TODO: Expand as needed: ebpf events, etc. |
| 23 | type JSONEventFormat struct { |
| 24 | Event interface{} `json:"Event"` |
| 25 | Rule string `json:"Rule"` |
| 26 | Action string `json:"Action"` |
| 27 | Type uint8 `json:"Type"` |
| 28 | } |
| 29 | |
| 30 | // NewJSON returns a new Json format, to send events as json. |
| 31 | // The json is the protobuffer in json format. |
nothing calls this directly
no outgoing calls
no test coverage detected