private AlertRaised AddErrorAlert(Queue <EtlErrorInfo> errors, EtlErrorsDetails details, AlertRaised alert) { details.Update(errors); _notificationCenter.Add(alert); return(alert); }
public EtlProcessStatistics(string processTag, string processName, NotificationCenter.NotificationCenter notificationCenter) { _processTag = processTag; _processName = processName; _notificationCenter = notificationCenter; TransformationErrorsInCurrentBatch = new EtlErrorsDetails(); LastLoadErrorsInCurrentBatch = new EtlErrorsDetails(); LastSlowSqlWarningsInCurrentBatch = new SlowSqlDetails(); _alertsGuard = new EnsureAlerts(this); }