Exemple #1
0
        protected override MonitoringAlert GetExistingOrNewAlertInfo(IHealthValidationResultMinimal result)
        {
            DatabasePotentialOneCopyAlert databasePotentialOneCopyAlert = (DatabasePotentialOneCopyAlert)base.GetExistingOrNewAlertInfo(result);
            string activeServerName = PotentialOneRedundantCopyAlertTable.GetActiveServerName(result);

            if (databasePotentialOneCopyAlert.TargetServer != activeServerName)
            {
                DatabaseAlertInfoTable <DatabasePotentialOneCopyAlert> .Tracer.TraceDebug <string, string>((long)this.GetHashCode(), "PotentialOneRedundantCopyAlertTable::GetExistingOrNewAlertInfo: TargetServer has been changed, create one new alert for {0}, new TargetServer is {1}", result.Identity, activeServerName);

                base.RemoveDatabaseAlert(result.IdentityGuid);
                databasePotentialOneCopyAlert = (DatabasePotentialOneCopyAlert)base.GetExistingOrNewAlertInfo(result);
            }
            return(databasePotentialOneCopyAlert);
        }
Exemple #2
0
 // Token: 0x060013CE RID: 5070 RVA: 0x000507E8 File Offset: 0x0004E9E8
 public DatabaseLevelAlerts()
 {
     this.TwoCopy                   = new DatabaseAlertInfoTable <DatabaseRedundancyTwoCopyAlert>((IHealthValidationResultMinimal validationResult) => new DatabaseRedundancyTwoCopyAlert(validationResult.Identity, validationResult.IdentityGuid));
     this.OneRedundantCopy          = new DatabaseAlertInfoTable <DatabaseRedundancyAlert>((IHealthValidationResultMinimal validationResult) => new DatabaseRedundancyAlert(validationResult.Identity, validationResult.IdentityGuid));
     this.OneRedundantCopySite      = new DatabaseAlertInfoTable <DatabaseRedundancySiteAlert>((IHealthValidationResultMinimal validationResult) => new DatabaseRedundancySiteAlert(validationResult.Identity, validationResult.IdentityGuid));
     this.OneAvailableCopy          = new DatabaseAlertInfoTable <DatabaseAvailabilityAlert>((IHealthValidationResultMinimal validationResult) => new DatabaseAvailabilityAlert(validationResult.Identity, validationResult.IdentityGuid));
     this.OneAvailableCopySite      = new DatabaseAlertInfoTable <DatabaseAvailabilitySiteAlert>((IHealthValidationResultMinimal validationResult) => new DatabaseAvailabilitySiteAlert(validationResult.Identity, validationResult.IdentityGuid));
     this.StaleStatus               = new DatabaseAlertInfoTable <DatabaseStaleStatusAlert>((IHealthValidationResultMinimal validationResult) => new DatabaseStaleStatusAlert(validationResult.Identity, validationResult.IdentityGuid));
     this.PotentialOneRedundantCopy = new PotentialOneRedundantCopyAlertTable();
     this.m_alertsArray             = new IDatabaseAlertInfoTable[]
     {
         this.TwoCopy,
         this.OneRedundantCopy,
         this.OneRedundantCopySite,
         this.OneAvailableCopy,
         this.OneAvailableCopySite,
         this.StaleStatus,
         this.PotentialOneRedundantCopy
     };
 }
Exemple #3
0
        private static DatabasePotentialOneCopyAlert CreateDatabaseOneRedundantCopyAlert(IHealthValidationResultMinimal validationResult)
        {
            string activeServerName = PotentialOneRedundantCopyAlertTable.GetActiveServerName(validationResult);

            return(new DatabasePotentialOneCopyAlert(validationResult.Identity, validationResult.IdentityGuid, activeServerName));
        }