From 50a1d704e1686ebc165b92111dcffa3e3ce0c58e Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Mon, 21 Oct 2024 11:15:39 +0200 Subject: [PATCH] status: add some missing description for status return properties 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 [ TL: avoid having netin twice, change to netout once ] Signed-off-by: Thomas Lamprecht --- PVE/QemuServer.pm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 2939605f..5b712cb9 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', + }, + netout => { + 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;