Island: Rename resource Events -> AgentEvents

This commit is contained in:
Shreya Malviya 2022-09-16 18:00:05 +05:30 committed by Mike Salvatore
parent edce35efef
commit c37876cb97
3 changed files with 4 additions and 4 deletions

View File

@ -13,9 +13,9 @@ from monkey_island.cc.database import database, mongo
from monkey_island.cc.resources import (
AgentBinaries,
AgentConfiguration,
AgentEvents,
Agents,
ClearSimulationData,
Events,
IPAddresses,
IslandLog,
PBAFileDownload,
@ -187,7 +187,7 @@ def init_restful_endpoints(api: FlaskDIWrapper):
api.add_resource(IslandLog)
api.add_resource(IPAddresses)
api.add_resource(Events)
api.add_resource(AgentEvents)
# API Spec: These two should be the same resource, GET for download and POST for upload
api.add_resource(PBAFileDownload)

View File

@ -8,5 +8,5 @@ from .ip_addresses import IPAddresses
from .agent_configuration import AgentConfiguration
from .pba_file_upload import PBAFileUpload, LINUX_PBA_TYPE, WINDOWS_PBA_TYPE
from .pba_file_download import PBAFileDownload
from .events import Events
from .events import AgentEvents
from .agents import Agents

View File

@ -10,7 +10,7 @@ from monkey_island.cc.resources.AbstractResource import AbstractResource
logger = logging.getLogger(__name__)
class Events(AbstractResource):
class AgentEvents(AbstractResource):
urls = ["/api/events"]
def __init__(