Common: Flatten out PingScanEvent

This commit is contained in:
Ilija Lazoroski 2022-09-28 12:12:20 +02:00 committed by Shreya Malviya
parent 228ce9bae1
commit 3202bfa2c1
1 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,6 @@
from common.types import PingScanData from typing import Optional
from common import OperatingSystem
from . import AbstractAgentEvent from . import AbstractAgentEvent
@ -8,7 +10,9 @@ class PingScanEvent(AbstractAgentEvent):
An event that occurs when the agent performs a ping scan on its network An event that occurs when the agent performs a ping scan on its network
Attributes: 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]