In the server,
Run npm install
Run npm start
-
/interfacelistDisplay a list of interfaces. -
/networkusageView network usage.Parameters:
iface, interface name, can get frominterfacelistX, if provided this api will return the average network usage in last X minutes
Result:
iface, interface namerx, received bytes overalltx, transferred bytes overallrx_in_X_min, received bytes in last X minutestx_in_X_min, transferred bytes in last X minutesX, in minutes