salo.events.zeek.base

Module Contents

Classes

ZeekModel

Mixin to provide __str__, __repr__, and __pretty__ methods. See #884 for more details.

Functions

random_uid() → str

random_fuid() → str

salo.events.zeek.base.random_uid() str[source]
salo.events.zeek.base.random_fuid() str[source]
class salo.events.zeek.base.ZeekModel(__pydantic_self__, **data: Any)[source]

Bases: salo.SaloEventModel

Mixin to provide __str__, __repr__, and __pretty__ methods. See #884 for more details.

__pretty__ is used by [devtools](https://python-devtools.helpmanual.io/) to provide human readable representations of objects.

class Config[source]
json_encoders
fields
timestamp :datetime.datetime
uid :Optional[str]
src_ip :Optional[pydantic.IPvAnyAddress]
src_port :Optional[int]
dest_ip :Optional[pydantic.IPvAnyAddress]
dest_port :Optional[int]
set_src_port(cls, v)[source]
set_dest_port(cls, v)[source]
generate(self, by_alias: bool = True, exclude_none: bool = True)[source]