mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Add interfaces stats api and refactor the others health api. (#7141)
This commit is contained in:
parent
193927107e
commit
ba9bfd3d1a
9 changed files with 205 additions and 49 deletions
13
scripts/lua/rest/v2/get/system/health/redis.lua
Normal file
13
scripts/lua/rest/v2/get/system/health/redis.lua
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
--
|
||||
-- (C) 2019-22 - ntop.org
|
||||
--
|
||||
|
||||
local dirs = ntop.getDirs()
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
||||
|
||||
local redis_api = require "redis_api"
|
||||
local rest_utils = require("rest_utils")
|
||||
|
||||
local stats = redis_api.getStats()
|
||||
|
||||
rest_utils.answer(rest_utils.consts.success.ok, stats)
|
||||
Loading…
Add table
Add a link
Reference in a new issue