Common: Create PingScanEvent

This commit is contained in:
Kekoa Kaaikala 2022-09-26 18:59:35 +00:00
parent d87cf5a9f5
commit 87ca11962e
2 changed files with 16 additions and 0 deletions

View File

@ -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

View File

@ -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