_event
_event
¶
Shared event type emitted by all watchers.
WatchEvent(ts, source, action, container, domain='', query_type='', dest='', detail='', port=0, proto=0, extra=dict())
dataclass
¶
A single watch event emitted to the output stream.
Core fields (always present): ts, source, action, container.
DNS-specific: domain, query_type.
Audit/NFLOG: dest, detail, port, proto.
to_json()
¶
Serialize to a compact JSON line, omitting empty optional fields.