diff --git a/monkey/common/events/abstract_event.py b/monkey/common/events/abstract_event.py index ef2735517..4b4edbf99 100644 --- a/monkey/common/events/abstract_event.py +++ b/monkey/common/events/abstract_event.py @@ -16,13 +16,13 @@ class AbstractEvent(ABC): about the event. Attributes: - :param tags: The set of tags associated with the event - :param target: The target of the event (if not the local system) :param source: The UUID of the agent that observed the event + :param target: The target of the event (if not the local system) :param timestamp: The time that the event occurred (seconds since the Unix epoch) + :param tags: The set of tags associated with the event """ - tags: FrozenSet[str] - target: Union[UUID, IPv4Address, None] source: UUID = field(default_factory=getnode) + target: Union[UUID, IPv4Address, None] = field(default=None) timestamp: float = field(default_factory=time.time) + tags: FrozenSet[str] = field(default_factory=frozenset)