Skip to content

Commit

Permalink
Common: Register serializers for {Exploitation,Propagation}Event
Browse files Browse the repository at this point in the history
  • Loading branch information
mssalvatore committed Oct 3, 2022
1 parent eb16969 commit 368ddde
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion monkey/common/agent_event_serializers/register.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
from common.agent_events import CredentialsStolenEvent, PingScanEvent, TCPScanEvent
from common.agent_events import (
CredentialsStolenEvent,
ExploitationEvent,
PingScanEvent,
PropagationEvent,
TCPScanEvent,
)

from . import AgentEventSerializerRegistry, PydanticAgentEventSerializer

Expand All @@ -11,3 +17,5 @@ def register_common_agent_event_serializers(
)
event_serializer_registry[PingScanEvent] = PydanticAgentEventSerializer(PingScanEvent)
event_serializer_registry[TCPScanEvent] = PydanticAgentEventSerializer(TCPScanEvent)
event_serializer_registry[PropagationEvent] = PydanticAgentEventSerializer(PropagationEvent)
event_serializer_registry[ExploitationEvent] = PydanticAgentEventSerializer(ExploitationEvent)

0 comments on commit 368ddde

Please sign in to comment.