From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 1E3D31FF0A7 for ; Wed, 02 Sep 2026 17:00:30 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 6302221618; Wed, 02 Sep 2026 17:00:08 +0200 (CEST) From: Shan Shaji To: pve-devel@lists.proxmox.com Subject: [PATCH proxmox v2 6/6] pve-api-types: update API dump for /node/status and regenerate types Date: Wed, 2 Sep 2026 16:59:44 +0200 Message-ID: <20260902145944.365185-7-s.shaji@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260902145944.365185-1-s.shaji@proxmox.com> References: <20260902145944.365185-1-s.shaji@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1788361195234 X-SPAM-LEVEL: Spam detection results: 0 AWL -1.003 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLACK 3 Contains an URL listed in the URIBL blacklist [types.rs] Message-ID-Hash: KOU7XI4QOWAZGFXHKAMTMRU37NH7PJZN X-Message-ID-Hash: KOU7XI4QOWAZGFXHKAMTMRU37NH7PJZN X-MailFrom: s.shaji@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Adds `uptime` and `idle` properties to the NodeStatus struct. Signed-off-by: Shan Shaji --- pve-api-types/pve-api.json | 10 ++++++++++ pve-api-types/src/generated/types.rs | 16 ++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/pve-api-types/pve-api.json b/pve-api-types/pve-api.json index 1006538e..7e77070e 100644 --- a/pve-api-types/pve-api.json +++ b/pve-api-types/pve-api.json @@ -56178,6 +56178,11 @@ }, "type": "object" }, + "idle": { + "description": "Sum of how much time each core has spent idle, in seconds.", + "minimum": 0, + "type": "integer" + }, "loadavg": { "description": "An array of load avg for 1, 5 and 15 minutes respectively.", "items": { @@ -56231,6 +56236,11 @@ } }, "type": "object" + }, + "uptime": { + "description": "The uptime of the system (including time spent in suspend), in seconds.", + "minimum": 0, + "type": "integer" } }, "type": "object" diff --git a/pve-api-types/src/generated/types.rs b/pve-api-types/src/generated/types.rs index 129f82ed..3a1e4951 100644 --- a/pve-api-types/src/generated/types.rs +++ b/pve-api-types/src/generated/types.rs @@ -11487,6 +11487,10 @@ pub struct NodeShellTicket { "current-kernel": { type: NodeStatusCurrentKernel, }, + idle: { + minimum: 0, + type: Integer, + }, loadavg: { items: { description: "The value of the load.", @@ -11503,6 +11507,10 @@ pub struct NodeShellTicket { rootfs: { type: NodeStatusRootfs, }, + uptime: { + minimum: 0, + type: Integer, + }, }, )] /// Object. @@ -11522,6 +11530,10 @@ pub struct NodeStatus { #[serde(rename = "current-kernel")] pub current_kernel: NodeStatusCurrentKernel, + /// Sum of how much time each core has spent idle, in seconds. + #[serde(deserialize_with = "proxmox_serde::perl::deserialize_u64")] + pub idle: u64, + /// An array of load avg for 1, 5 and 15 minutes respectively. pub loadavg: Vec, @@ -11532,6 +11544,10 @@ pub struct NodeStatus { pub rootfs: NodeStatusRootfs, + /// The uptime of the system (including time spent in suspend), in seconds. + #[serde(deserialize_with = "proxmox_serde::perl::deserialize_u64")] + pub uptime: u64, + #[serde(flatten)] pub additional_properties: HashMap, } -- 2.47.3