Am 18.04.2013 06:32, schrieb Dietmar Maurer:
Then let's go this way. It's much simpler than adding RRD.

So the question is should this be a completely new call

Yes, I think this should be a new call:

GET /nodes/<nodename>/netstat

[
{vmid => 100, dev => net0, in => XXX, out => YYY},
{vmid => 100, dev => net1, in => XXX, out => YYY},
{vmid => 200, dev => net0, in => XXX, out => YYY},
]

So that we can get all data with one API call.

Patch sent. I used a different output format which has the vmid as a key so it is easier to access the right information as nobody needs to loop through the array.

Greets,
Stefan
_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to