[pve-devel] [PATCH container 1/1] status: add some missing descriptions for status return properties
Dominik Csapak
d.csapak at proxmox.com
Mon Oct 21 11:15:40 CEST 2024
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
src/PVE/LXC.pm | 43 ++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 42 insertions(+), 1 deletion(-)
diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm
index c49551d..ca76dae 100644
--- a/src/PVE/LXC.pm
+++ b/src/PVE/LXC.pm
@@ -139,17 +139,52 @@ our $vmstatus_return_properties = {
optional => 1,
renderer => 'bytes',
},
+ disk => {
+ description => "Used root image space for the container.",
+ type => 'integer',
+ optional => 1,
+ renderer => 'bytes',
+ minimum => 0,
+ },
maxdisk => {
description => "Root disk size in bytes.",
type => 'integer',
optional => 1,
renderer => 'bytes',
},
+ diskread => {
+ description => "The amount of bytes the guest read from it's disks since the process"
+ ." start in bytes. (Note: This info is not available for all storage types.)",
+ 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. (Note: This info is not available for all storage types.)",
+ type => 'integer',
+ optional => 1,
+ renderer => 'bytes',
+ },
name => {
description => "Container 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',
+ },
uptime => {
description => "Uptime.",
type => 'integer',
@@ -170,7 +205,13 @@ our $vmstatus_return_properties = {
description => "The current configured tags, if any.",
type => 'string',
optional => 1,
- }
+ },
+ template => {
+ description => "Determines if the guest is a template.",
+ type => 'boolean',
+ optional => 1,
+ default => 0,
+ },
};
sub vmstatus {
--
2.39.5
More information about the pve-devel
mailing list