This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 7f0713d3441 Polished /q/info
7f0713d3441 is described below

commit 7f0713d3441a4d35fae441d1bd30e3d0bf6ee336
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Fri Mar 7 12:31:18 2025 +0100

    Polished /q/info
---
 .../camel/component/platform/http/main/MainHttpServer.java    | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git 
a/components/camel-platform-http-main/src/main/java/org/apache/camel/component/platform/http/main/MainHttpServer.java
 
b/components/camel-platform-http-main/src/main/java/org/apache/camel/component/platform/http/main/MainHttpServer.java
index dd123a1dcbb..9713fc87416 100644
--- 
a/components/camel-platform-http-main/src/main/java/org/apache/camel/component/platform/http/main/MainHttpServer.java
+++ 
b/components/camel-platform-http-main/src/main/java/org/apache/camel/component/platform/http/main/MainHttpServer.java
@@ -634,22 +634,29 @@ public class MainHttpServer extends ServiceSupport 
implements CamelContextAware,
                 ctx.response().putHeader("content-type", "application/json");
 
                 JsonObject root = new JsonObject();
+
                 JsonObject jo = new JsonObject();
-                root.put("java", jo);
+                root.put("os", jo);
+                jo.put("name", System.getProperty("os.name"));
+                jo.put("version", System.getProperty("os.version"));
+                jo.put("arch", System.getProperty("os.arch"));
 
+                jo = new JsonObject();
+                root.put("java", jo);
                 RuntimeMXBean rmb = ManagementFactory.getRuntimeMXBean();
                 if (rmb != null) {
                     jo.put("pid", rmb.getPid());
                     jo.put("vendor", rmb.getVmVendor());
                     jo.put("name", rmb.getVmName());
+                    jo.put("vmVersion", rmb.getVmVersion());
                     jo.put("version", String.format("%s", 
System.getProperty("java.version")));
                     jo.put("user", System.getProperty("user.name"));
                     jo.put("dir", System.getProperty("user.dir"));
+                    jo.put("home", System.getProperty("user.home"));
                 }
 
                 jo = new JsonObject();
                 root.put("camel", jo);
-
                 jo.put("name", camelContext.getName());
                 jo.put("version", camelContext.getVersion());
                 if (camelContext.getCamelContextExtension().getProfile() != 
null) {

Reply via email to