Add interfaces stats api and refactor the others health api. (#7141)

This commit is contained in:
Nicolo Maio 2023-01-27 09:18:03 +00:00
parent 193927107e
commit ba9bfd3d1a
9 changed files with 205 additions and 49 deletions

View file

@ -100,6 +100,7 @@ function storage_utils.storageInfo(refresh_cache, timeout)
local if_info = storage_utils.interfaceStorageInfo(ifid, separate_pcap_volume, refresh_cache, timeout)
if if_info then
info.interfaces[ifid] = if_info
info.interfaces[ifid]["name"] = name
info.total = info.total + if_info.total
if if_info.pcap ~= nil then
info.pcap_total = info.pcap_total + if_info.pcap