forked from p15670423/monkey
Common: Fix AbstractAgentEvent union
This commit is contained in:
parent
1c127781ca
commit
ab32daa0e0
|
@ -25,6 +25,6 @@ class AbstractAgentEvent(InfectionMonkeyBaseModel, ABC):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
source: AgentID
|
source: AgentID
|
||||||
target: Union[MachineID, IPv4Address, None] = Field(default=None)
|
target: Union[IPv4Address, MachineID, None] = Field(default=None)
|
||||||
timestamp: float = Field(default_factory=time.time)
|
timestamp: float = Field(default_factory=time.time)
|
||||||
tags: FrozenSet[str] = Field(default_factory=frozenset)
|
tags: FrozenSet[str] = Field(default_factory=frozenset)
|
||||||
|
|
Loading…
Reference in New Issue