mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Updated some REST documentation (#9013)
This commit is contained in:
parent
d884c9bc14
commit
4c1026f54d
7 changed files with 28 additions and 19 deletions
|
|
@ -27,4 +27,8 @@ for _,iface in pairs(names) do
|
|||
end
|
||||
end
|
||||
|
||||
if #stats == 0 then
|
||||
stats = {"No flow collectors associated with ntopng"}
|
||||
end
|
||||
|
||||
rest_utils.answer(rest_utils.consts.success.ok, stats)
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ local rest_utils = require("rest_utils")
|
|||
|
||||
--
|
||||
-- Read system statistics
|
||||
-- Example: curl -u admin:admin -H "Content-Type: application/json" http://localhost:3000/lua/rest/v2/get/system/stats.lua
|
||||
-- Example: curl -u admin:admin -H "Content-Type: application/json" http://localhost:3000/lua/rest/v2/get/system/health/stats.lua
|
||||
--
|
||||
-- NOTE: in case of invalid login, no error is returned but redirected to login
|
||||
--
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue