Island: Remove ITelemtryRepository

This commit is contained in:
Ilija Lazoroski 2022-09-14 11:59:52 +02:00 committed by Mike Salvatore
parent ed0e8c4870
commit b129833e57
2 changed files with 0 additions and 22 deletions

View File

@ -1,20 +0,0 @@
from abc import ABC
from typing import Optional, Sequence
from monkey_island.cc.models.telemetries.telemetry import Telemetry
class ITelemetryRepository(ABC):
def save_telemetry(self, telemetry: Telemetry):
pass
# TODO define all telemetry types
# Potentially we'll need to define each telem type separately. As it stands there's no way to
# get exploit telemetries by exploiter for example
def get_telemetries(
self,
id: Optional[str] = None,
type: Optional[TelemetryType] = None, # noqa: F821
monkey_id: Optional[str] = None,
) -> Sequence[Telemetry]:
pass

View File

@ -20,7 +20,6 @@ from monkey_island.cc.repository.i_log_repository import ILogRepository
from monkey_island.cc.repository.i_machine_repository import IMachineRepository
from monkey_island.cc.repository.i_report_repository import IReportRepository
from monkey_island.cc.repository.i_simulation_repository import ISimulationRepository
from monkey_island.cc.repository.i_telemetry_repository import ITelemetryRepository
from monkey_island.cc.repository.ICredentials import ICredentialsRepository
from monkey_island.cc.repository.zero_trust.IEventRepository import IEventRepository
from monkey_island.cc.repository.zero_trust.IFindingRepository import IFindingRepository
@ -274,7 +273,6 @@ ICredentialsRepository.remove_configured_credentials
ICredentialsRepository.remove_all_credentials
ICredentialsRepository.save_stolen_credentials
ICredentialsRepository.save_configured_credentials
ITelemetryRepository.get_telemetries
IEventRepository.get_events
IFindingRepository.get_findings
key_list