From 2447ccab6252fddc829da3eec8b29d1abe3dee60 Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Tue, 21 Sep 2021 14:22:19 -0400 Subject: [PATCH] docs: update proc_stats documentation The "websocket_connections" is now reported by proc_stats. Signed-off-by: Eric Callahan --- docs/web_api.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/web_api.md b/docs/web_api.md index a00efc8..a95ab12 100644 --- a/docs/web_api.md +++ b/docs/web_api.md @@ -1033,7 +1033,8 @@ An object in the following format: "tx_bytes": 113430843, "bandwidth": 4455.91 } - } + }, + "websocket_connections": 4 } ``` Process information is sampled every second. The `moonraker_stats` field @@ -1085,6 +1086,9 @@ will be tracked. Each interface reports the following fields: If network information is not available then the `network` field will contain an empty object. +The `websocket_connections` field reports the number of active websockets +currently connected to moonraker. + ### File Operations Most file operations are available over both APIs, however file upload and @@ -3285,7 +3289,8 @@ process statistics: "tx_bytes": 115035939, "bandwidth": 3458.77 } - } + }, + "websocket_connections": 2 }] } ```