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 ( from monkey_island.cc.resources import (
AgentBinaries, AgentBinaries,
AgentConfiguration, AgentConfiguration,
AgentEvents,
Agents, Agents,
ClearSimulationData, ClearSimulationData,
Events,
IPAddresses, IPAddresses,
IslandLog, IslandLog,
PBAFileDownload, PBAFileDownload,
@ -187,7 +187,7 @@ def init_restful_endpoints(api: FlaskDIWrapper):
api.add_resource(IslandLog) api.add_resource(IslandLog)
api.add_resource(IPAddresses) 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 Spec: These two should be the same resource, GET for download and POST for upload
api.add_resource(PBAFileDownload) api.add_resource(PBAFileDownload)

View File

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

View File

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