From 87ca11962ed3832b54c3953a007ccb1b08f8e42c Mon Sep 17 00:00:00 2001 From: Kekoa Kaaikala Date: Mon, 26 Sep 2022 18:59:35 +0000 Subject: [PATCH] Common: Create PingScanEvent --- monkey/common/agent_events/ping_scan_event.py | 14 ++++++++++++++ vulture_allowlist.py | 2 ++ 2 files changed, 16 insertions(+) create mode 100644 monkey/common/agent_events/ping_scan_event.py diff --git a/monkey/common/agent_events/ping_scan_event.py b/monkey/common/agent_events/ping_scan_event.py new file mode 100644 index 000000000..bfb650f04 --- /dev/null +++ b/monkey/common/agent_events/ping_scan_event.py @@ -0,0 +1,14 @@ +from common.types import PingScanData + +from . import AbstractAgentEvent + + +class PingScanEvent(AbstractAgentEvent): + """ + An event that occurs when the agent performs a ping scan on its network + + Attributes: + :param scan_data: The data collected from the ping scan + """ + + scan_data: PingScanData diff --git a/vulture_allowlist.py b/vulture_allowlist.py index a9e9dde74..1298ecf2c 100644 --- a/vulture_allowlist.py +++ b/vulture_allowlist.py @@ -307,6 +307,8 @@ IAgentLogRepository IAgentLogRepository.upsert_agent_log IAgentLogRepository.get_agent_log +# TODO: Remove once #2268 is closed +PingScanEvent # pydantic base models underscore_attrs_are_private