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 <d.csapak@proxmox.com>
 [ TL: avoid having netin twice, change to netout once ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Dominik Csapak 2024-10-21 11:15:39 +02:00 committed by Thomas Lamprecht
parent be8c868f0c
commit 50a1d704e1

View File

@ -2764,11 +2764,39 @@ our $vmstatus_return_properties = {
optional => 1, optional => 1,
renderer => 'bytes', 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 => { name => {
description => "VM name.", description => "VM name.",
type => 'string', type => 'string',
optional => 1, 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 => { qmpstatus => {
description => "VM run state from the 'query-status' QMP monitor command.", description => "VM run state from the 'query-status' QMP monitor command.",
type => 'string', type => 'string',
@ -2810,6 +2838,12 @@ our $vmstatus_return_properties = {
type => 'string', type => 'string',
optional => 1, optional => 1,
}, },
template => {
description => "Determines if the guest is a template.",
type => 'boolean',
optional => 1,
default => 0,
},
}; };
my $last_proc_pid_stat; my $last_proc_pid_stat;