mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Adds JSON endpoints to retrieve top talkers data
This commit is contained in:
parent
21329270e8
commit
418f48e714
4 changed files with 281 additions and 5 deletions
|
|
@ -861,6 +861,22 @@ function isBroadcastMulticast(ip)
|
|||
return false
|
||||
end
|
||||
|
||||
function isIPv4(ip)
|
||||
if string.find(ip, ".") then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
|
||||
function isIPv6(ip)
|
||||
if string.find(ip, ".") then
|
||||
return false
|
||||
end
|
||||
return true
|
||||
end
|
||||
|
||||
|
||||
function addGauge(name, url, maxValue, width, height)
|
||||
if(url ~= nil) then print('<A HREF="'..url..'">') end
|
||||
print('<canvas id="'..name..'" height="'..height..'" width="'..width..'"></canvas>\n')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue