From 4814d6777674d2d7c69962cc9f05f39ae3768788 Mon Sep 17 00:00:00 2001 From: Lukas Bloder Date: Thu, 8 Feb 2024 22:14:49 +0100 Subject: [PATCH] add thresholds to monitor config doc (#9053) --- platform-includes/crons/setup/java.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform-includes/crons/setup/java.mdx b/platform-includes/crons/setup/java.mdx index 6a103d2edfaac..0e8c2085d8c21 100644 --- a/platform-includes/crons/setup/java.mdx +++ b/platform-includes/crons/setup/java.mdx @@ -168,6 +168,8 @@ MonitorConfig monitorConfig = new MonitorConfig(monitorSchedule); monitorConfig.setTimezone("Europe/Vienna"); // Optional timezone monitorConfig.setCheckinMargin(5L); // Optional check-in margin in minutes monitorConfig.setMaxRuntime(15L); // Optional max runtime in minutes +monitorConfig.setFailureIssueThreshold(2L); //Optional failure issue threshold +monitorConfig.setRecoveryThreshold(5L); // Optional recovery threshold // 🟡 Notify Sentry your job is running: CheckIn checkIn = new CheckIn(