use of de.codecentric.boot.admin.notify.RemindingNotifier in project fw-cloud-framework by liuweijw.
the class FwNotifierConfiguration method remindingNotifier.
@Bean
@Primary
public RemindingNotifier remindingNotifier() {
RemindingNotifier remindingNotifier = new RemindingNotifier(notifier());
remindingNotifier.setReminderPeriod(TimeUnit.MINUTES.toMillis(1));
return remindingNotifier;
}
use of de.codecentric.boot.admin.notify.RemindingNotifier in project micro-service by Lovnx.
the class NotifierConfiguration method remindingNotifier.
@Bean
@Primary
public RemindingNotifier remindingNotifier() {
RemindingNotifier remindingNotifier = new RemindingNotifier(notifier);
// 设定时间,5分钟提醒一次
// remindingNotifier.setReminderPeriod(TimeUnit.MINUTES.toMillis(5));
// 设定监控服务状态,状态改变为给定值的时候提醒
remindingNotifier.setReminderStatuses(reminderStatuses);
return remindingNotifier;
}
use of de.codecentric.boot.admin.notify.RemindingNotifier in project tutorials by eugenp.
the class NotifierConfiguration method remindingNotifier.
@Bean
@Primary
public RemindingNotifier remindingNotifier() {
RemindingNotifier remindingNotifier = new RemindingNotifier(filteringNotifier());
remindingNotifier.setReminderPeriod(TimeUnit.MINUTES.toMillis(5));
return remindingNotifier;
}
use of de.codecentric.boot.admin.notify.RemindingNotifier in project tutorials by eugenp.
the class NotifierConfigurationIntegrationTest method whenApplicationContextStart_ThenRemindingNotifierBeanExists.
@Test
public void whenApplicationContextStart_ThenRemindingNotifierBeanExists() {
RemindingNotifier remindingNotifier = (RemindingNotifier) applicationContext.getBean("remindingNotifier");
assertNotEquals(remindingNotifier, null);
}
Aggregations