public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH qemu-server] vmstatus: document more return types
@ 2024-12-17  9:32 Dominik Csapak
  2024-12-17  9:32 ` [pve-devel] [PATCH container] " Dominik Csapak
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Dominik Csapak @ 2024-12-17  9:32 UTC (permalink / raw)
  To: pve-devel

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-12-18 15:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-17  9:32 [pve-devel] [PATCH qemu-server] vmstatus: document more return types Dominik Csapak
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

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