i omitted the 'disk' property, since it's non functional currently,
since we don't query the disk usage here (complicated to calculate,
depending on the storage, or requires guest agent support, which is also
non-trivial)

Signed-off-by: Dominik Csapak <d.csa...@proxmox.com>
---
 PVE/QemuServer.pm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index b26da505..e6df6091 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -2764,11 +2764,39 @@ our $vmstatus_return_properties = {
        optional => 1,
        renderer => 'bytes',
     },
+    diskread => {
+       description => "The amount of bytes the guest read from it's disks 
since the process"
+           ." start in bytes.",
+       type => 'integer',
+       optional => 1,
+       renderer => 'bytes',
+    },
+    diskwrite => {
+       description => "The amount of bytes the guest wrote to it's disks since 
the process"
+           ." start in bytes.",
+       type => 'integer',
+       optional => 1,
+       renderer => 'bytes',
+    },
     name => {
        description => "VM name.",
        type => 'string',
        optional => 1,
     },
+    netin => {
+       description => "The amount of traffic that was sent to the guest since 
the process start,"
+           ." in bytes.",
+       type => 'integer',
+       optional => 1,
+       renderer => 'bytes',
+    },
+    netin => {
+       description => "The amount of traffic that was sent from the guest 
since the process start,"
+           ." in bytes.",
+       type => 'integer',
+       optional => 1,
+       renderer => 'bytes',
+    },
     qmpstatus => {
        description => "VM run state from the 'query-status' QMP monitor 
command.",
        type => 'string',
@@ -2810,6 +2838,12 @@ our $vmstatus_return_properties = {
        type => 'string',
        optional => 1,
     },
+    template => {
+       description => "Determines if the guest is a template.",
+       type => 'boolean',
+       optional => 1,
+       default => 0,
+    },
 };
 
 my $last_proc_pid_stat;
-- 
2.39.5



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to