mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Implements RESTful API to get/add/edit/delete active monitoring pools
This commit is contained in:
parent
44535d99a7
commit
b62fc9de77
5 changed files with 26 additions and 48 deletions
|
|
@ -4,21 +4,9 @@
|
|||
|
||||
local dirs = ntop.getDirs()
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/pools/?.lua;" .. package.path
|
||||
|
||||
require "lua_utils"
|
||||
local json = require "dkjson"
|
||||
local rest_utils = require "rest_utils"
|
||||
|
||||
--
|
||||
-- Delete an existing pool
|
||||
--
|
||||
|
||||
sendHTTPHeader('application/json')
|
||||
|
||||
local rc = rest_utils.consts_ok
|
||||
local res = {
|
||||
-- STUB
|
||||
}
|
||||
|
||||
print(rest_utils.rc(rc, res))
|
||||
local active_monitoring_pools = require "active_monitoring_pools"
|
||||
local pools_rest_utils = require "pools_rest_utils"
|
||||
|
||||
pools_rest_utils.delete_pool(active_monitoring_pools)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue