From 205ff84b31e9b11b464e325f12a3a0475f0df84d Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Tue, 16 Aug 2022 17:30:30 +0200 Subject: [PATCH] Common: Add defaults for each argument in AbstractEvent --- monkey/common/events/abstract_event.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)