mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
remote_event_ts_compat: Fix NETWORK_TIMESTAMP to NetworkTimestamp
This commit is contained in:
parent
11776d60e0
commit
03be610684
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ with broker.Endpoint() as ep, \
|
|||
print("send event with timestamp")
|
||||
ts = datetime.datetime.fromtimestamp(23.0, broker.utc)
|
||||
metadata = {
|
||||
broker.zeek.Metadata.NETWORK_TIMESTAMP: ts,
|
||||
broker.zeek.MetadataType.NetworkTimestamp: ts,
|
||||
}
|
||||
my_event = broker.zeek.Event("my_event", "with ts", metadata=metadata)
|
||||
ep.publish(broker_topic, my_event)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue