springboot中,bootadmin监测到故障只发一次报警,有没有办法让其持续隔几分钟就报警一次

bootadmin监测到故障只发一次报警,有没有办法让其持续隔几分钟就报警一次


回答:

@Primary

@Bean(initMethod = "start", destroyMethod = "stop")

public RemindingNotifier remindingNotifier(InstanceRepository repository) {

RemindingNotifier notifier = new RemindingNotifier(dingDingNotifier(repo - sitory), repository);

notifier.setReminderPeriod(Duration.ofSeconds(10));

notifier.setCheckReminderInverval(Duration.ofSeconds(10));

return notifier;

}

来源于文章

Our needs are also very simple. When the service truly hangs, the alert can send a number, such as sending one every 10 seconds, such continuous alerts are easy to keep maintenance personnel attention and discrimination.

以上是 springboot中,bootadmin监测到故障只发一次报警,有没有办法让其持续隔几分钟就报警一次 的全部内容, 来源链接: utcz.com/p/944210.html

回到顶部