require "lua_utils" require "graph_utils" local ts_utils = require "ts_utils" -- Get from redis the throughput type bps or pps local throughput_type = getThroughputType() local now = os.time() function network2record(ifId, network) local record = {} record["key"] = tostring(network["network_id"]) local network_link = ""..getFullLocalNetworkName(network["network_key"])..'' record["column_id"] = network_link record["column_hosts"] = (network["num_hosts"] or 0).."" local sent2rcvd = round((network["bytes.sent"] * 100) / (network["bytes.sent"] + network["bytes.rcvd"]), 0) record["column_breakdown"] = "