In the server,
Run npm install
Run npm start
-
/interfacelist
Display a list of interfaces. -
/networkusage
View network usage.Parameters:
iface
, interface name, can get frominterfacelist
X
, 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