@Override
public void sendAlert(AlertType alertType, long dataCenterId, Long podId, String subject, String body) {
AlertGenerator.publishAlertOnEventBus(alertType.getName(), dataCenterId, podId, subject, body);
try {
if (_emailAlert != null) {
_emailAlert.sendAlert(alertType, dataCenterId, podId, null, subject, body);
} else {
s_logger.warn("AlertType:: " + alertType + " | dataCenterId:: " + dataCenterId + " | podId:: " + podId +
" | message:: " + subject + " | body:: " + body);
}
} catch (Exception ex) {
s_logger.error("Problem sending email alert", ex);
}
}