mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-01 16:39:11 +00:00
Alerting add TODO
Original commit: elastic/x-pack-elasticsearch@23cf5fce8b
This commit is contained in:
parent
418b9f1a31
commit
14d0bcd589
@ -69,6 +69,7 @@ public class AlertScheduler extends AbstractLifecycleComponent {
|
|||||||
DateTime scheduledTime = new DateTime(jobExecutionContext.getScheduledFireTime());
|
DateTime scheduledTime = new DateTime(jobExecutionContext.getScheduledFireTime());
|
||||||
if (!alert.enabled()) {
|
if (!alert.enabled()) {
|
||||||
logger.warn("Alert [{}] is not enabled", alertName);
|
logger.warn("Alert [{}] is not enabled", alertName);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
if (!alertManager.claimAlertRun(alertName, scheduledTime) ){
|
if (!alertManager.claimAlertRun(alertName, scheduledTime) ){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user