Documentation of ubus call luci getRealtimeStats

Hi,

I am looking for some documentation of the luci - ubus call "getRealtimeStats. When I for instance enter

ubus call luci getRealtimeStats '{ "mode": "interface", "device":  "eth0" }'

on the openWRT shell I get a result like:

{
	"result": [
		[
			1724531945,
			1077199577,
			919032717,
			4208247179.000000,
			818845054
		],
		[
			1724531946,
			1077199577,
			919032717,
			4208247179.000000,
			818845054
		],
...

Obviously it is an array of array with five numerical entries. The first number seams to me to be a unix time stamp. But is the meaning of the other four numbers documented somewhere?

best regards,

Holger

Does this help?

Thank you for your replay. Even though a source code (almost without comments :wink: ) is not a documentation it helped. I got from this source code the meaning of the five values of each entry:

  1. Unit-Time
  2. Received Bytes (accumulated)
  3. Received Packets (accumulated)
  4. Transmitted Bytes (accumulated)
  5. Transmitted Packets (accumulated)

regards,

Holger