-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
driver_key = params["path"]?.presence
driver_id = params["driver_id"]?.presence
Line 13 in fd1c903
| # TODO: Add option to kill via driver_id |
require "./application"
require "../placeos-core/resources/modules"
module PlaceOS::Core::Api
class Chaos < Application
base "/api/core/v1/chaos/"
getter module_manager : Resources::Modules { Resources::Modules.instance }
# Terminate a process by executable path
post "/terminate", :terminate do
# TODO: Add option to kill via driver_id
# driver_key = params["path"]?.presence
# driver_id = params["driver_id"]?.presence
driver_key = params["path"]
edge_id = params["edge_id"]?.presence