mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-10-04 09:23:23 +00:00
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:
parent
be8c868f0c
commit
50a1d704e1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user