From 4d75d48eead11fa7df7bb276f3a8e65037c44bca Mon Sep 17 00:00:00 2001 From: si458 Date: Tue, 23 Jul 2024 13:10:01 +0100 Subject: [PATCH] add watchdog to config-schema Signed-off-by: si458 --- meshcentral-config-schema.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/meshcentral-config-schema.json b/meshcentral-config-schema.json index c66272b7..0bfc1b7c 100644 --- a/meshcentral-config-schema.json +++ b/meshcentral-config-schema.json @@ -1003,6 +1003,24 @@ "required": [ "enabled" ] + }, + "watchdog": { + "type": "object", + "required": [ + "interval", + "timeout" + ], + "description": "This is used to monitor if NodeJS is servicing IO correctly or getting held up a lot. You MUST specify \"interval\" and \"timeout\".", + "properties": { + "interval": { + "type": "number", + "description": " This will check every X ms" + }, + "timeout": { + "type": "number", + "description": " If the timer is more than X ms late, it will warn to console AND mesherrors.txt" + } + } } } },