public inbox for pve-devel@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 qemu-server] vmstatus: document more return types
Date: Tue, 17 Dec 2024 10:32:06 +0100	[thread overview]
Message-ID: <20241217093207.930119-1-d.csapak@proxmox.com> (raw)

namely 'cpu' and 'mem'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
 PVE/QemuServer.pm | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index b3d5f8f2..98bc07c2 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -2793,6 +2793,12 @@ our $vmstatus_return_properties = {
 	type => 'string',
 	enum => ['stopped', 'running'],
     },
+    mem => {
+	description => "Current memroy usage in bytes.",
+	type => 'integer',
+	optional => 1,
+	renderer => 'bytes',
+    },
     maxmem => {
 	description => "Maximum memory in bytes.",
 	type => 'integer',
@@ -2854,6 +2860,11 @@ our $vmstatus_return_properties = {
 	optional => 1,
 	renderer => 'duration',
     },
+    cpu => {
+	description => "Current CPU usage.",
+	type => 'number',
+	optional => 1,
+    },
     cpus => {
 	description => "Maximum usable CPUs.",
 	type => 'number',
-- 
2.39.5



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


             reply	other threads:[~2024-12-17  9:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-17  9:32 Dominik Csapak [this message]
2024-12-17  9:32 ` [pve-devel] [PATCH container] " Dominik Csapak
2024-12-17 13:39 ` [pve-devel] applied-series: [PATCH qemu-server] " Thomas Lamprecht
2024-12-18 14:44 ` [pve-devel] " Daniel Kral
2024-12-18 15:01   ` Dominik Csapak
2024-12-18 15:16     ` Daniel Kral

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=20241217093207.930119-1-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal