Skip to content

Commit

Permalink
add thresholds to monitor config doc (#9053)
Browse files Browse the repository at this point in the history
  • Loading branch information
lbloder authored Feb 8, 2024
1 parent 8705e78 commit 4814d67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions platform-includes/crons/setup/java.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 4814d67

Please sign in to comment.