Island: Rename resource Events -> AgentEvents
This commit is contained in:
parent
edce35efef
commit
c37876cb97
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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__(
|
||||
|
|
Loading…
Reference in New Issue