From 3202bfa2c1d9889da3b9858c13adb872aaaea692 Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Wed, 28 Sep 2022 12:12:20 +0200 Subject: [PATCH] Common: Flatten out PingScanEvent --- monkey/common/agent_events/ping_scan_event.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/monkey/common/agent_events/ping_scan_event.py b/monkey/common/agent_events/ping_scan_event.py index bfb650f04..943bf5fd2 100644 --- a/monkey/common/agent_events/ping_scan_event.py +++ b/monkey/common/agent_events/ping_scan_event.py @@ -1,4 +1,6 @@ -from common.types import PingScanData +from typing import Optional + +from common import OperatingSystem from . import AbstractAgentEvent @@ -8,7 +10,9 @@ 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 + :param response_received: Is any response from ping recieved + :param os: Operating system from the target system """ - scan_data: PingScanData + response_received: bool + os: Optional[OperatingSystem]