ManagerAlertPluginService.getInstance().sendAlert(alertRecipient, recipients, alert, oldStatus, getCurrentValue(statList), "" + System.currentTimeMillis());
}
BasicTriggeredAlert triggeredAlert = new BasicTriggeredAlert();
triggeredAlert.setAccountName(accountName);
triggeredAlert.setAlertName(alert.getAlertName());
triggeredAlert.setAlertValue(getCurrentValue(statList));
triggeredAlert.setErrorValue(alert.getErrorValue());
triggeredAlert.setTimeperiod(System.currentTimeMillis() / 15000);
triggeredAlert.setWarningValue(alert.getWarningValue());
logger.info("Persisitng triggered alert for alert: " + alert.getAlertName() + " for account: " + alert.getAccountName());
dbPlugin.getAlertDao().persistTriggeredAlert(triggeredAlert);
BasicAlert basicAlert = new BasicAlert(alert);