all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Dominik Csapak <d.csapak@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH container 1/1] status: add some missing descriptions for status return properties
Date: Mon, 21 Oct 2024 11:15:40 +0200	[thread overview]
Message-ID: <20241021091542.1017657-3-d.csapak@proxmox.com> (raw)
In-Reply-To: <20241021091542.1017657-1-d.csapak@proxmox.com>

Signed-off-by: Dominik Csapak <d.csapak@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



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


  parent reply	other threads:[~2024-10-21  9:15 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-21  9:15 [pve-devel] [PATCH qemu-server/container/manager] add some missing return schema descriptions Dominik Csapak
2024-10-21  9:15 ` [pve-devel] [PATCH qemu-server 1/1] status: add some missing description for status return properties Dominik Csapak
2024-10-24 13:53   ` [pve-devel] applied: " Thomas Lamprecht
2024-10-21  9:15 ` Dominik Csapak [this message]
2024-10-24 12:20   ` [pve-devel] applied: [PATCH container 1/1] status: add some missing descriptions " Thomas Lamprecht
2024-10-24 15:05     ` Dominik Csapak
2024-10-24 15:12       ` Thomas Lamprecht
2024-10-21  9:15 ` [pve-devel] [PATCH manager 1/2] api: subscription: add return schema for 'GET' api Dominik Csapak
2024-10-24 15:02   ` [pve-devel] applied: " Thomas Lamprecht
2024-10-21  9:15 ` [pve-devel] [PATCH manager 2/2] api: cluster/resources: add missing return properties Dominik Csapak
2024-10-24 15:02   ` [pve-devel] applied: " Thomas Lamprecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241021091542.1017657-3-d.csapak@proxmox.com \
    --to=d.csapak@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal