use of com.thinkbiganalytics.alerts.api.Alert.ID in project kylo by Teradata.
the class AggregatingAlertProvider method findActionableAlert.
private SimpleEntry<Alert, AlertManager> findActionableAlert(ID id) {
SourceAlertID srcId = asSourceAlertId(id);
AlertManager mgr = this.managers.get(srcId.sourceId);
if (mgr != null) {
return getAlert(srcId.alertId, mgr, true).filter(alert -> alert.isActionable()).map(alert -> new SimpleEntry<>(unwrapAlert(alert), mgr)).orElse(null);
} else {
return null;
}
}
Aggregations