From: Dominik Csapak <d.csapak@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH container] vmstatus: document more return types
Date: Tue, 17 Dec 2024 10:32:07 +0100 [thread overview]
Message-ID: <20241217093207.930119-2-d.csapak@proxmox.com> (raw)
In-Reply-To: <20241217093207.930119-1-d.csapak@proxmox.com>
namely 'cpu' and 'mem'
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
src/PVE/LXC.pm | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm
index e78e365..4d20645 100644
--- a/src/PVE/LXC.pm
+++ b/src/PVE/LXC.pm
@@ -127,6 +127,12 @@ our $vmstatus_return_properties = {
type => 'string',
enum => ['stopped', 'running'],
},
+ mem => {
+ description => "Currently used memory in bytes.",
+ type => 'integer',
+ optional => 1,
+ renderer => 'bytes',
+ },
maxmem => {
description => "Maximum memory in bytes.",
type => 'integer',
@@ -191,6 +197,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
next prev parent 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 [pve-devel] [PATCH qemu-server] " Dominik Csapak
2024-12-17 9:32 ` Dominik Csapak [this message]
2024-12-17 13:39 ` [pve-devel] applied-series: " 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-2-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