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

新手上路,请多包涵

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

阅读 1.6k
1 个回答
@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.
推荐问题