forked from p15670423/monkey
Common: Add default to source in AbstractAgentEvent
This commit is contained in:
parent
89397d8cbd
commit
b1b9eb394e
|
@ -24,7 +24,7 @@ class AbstractAgentEvent(InfectionMonkeyBaseModel, ABC):
|
|||
:param tags: The set of tags associated with the event
|
||||
"""
|
||||
|
||||
source: AgentID
|
||||
source: AgentID = Field(default=None)
|
||||
target: Union[MachineID, IPv4Address, None] = Field(default=None)
|
||||
timestamp: float = Field(default_factory=time.time)
|
||||
tags: FrozenSet[str] = Field(default_factory=frozenset)
|
||||
|
|
Loading…
Reference in New Issue