public IEnumerable <Issue> GetIssues()
 {
     foreach (var ag in AvailabilityGroups.WithIssues())
     {
         yield return(new Issue <SQLNode.AGInfo>(ag, "SQL Availability Group", ag.Name)
         {
             IsCluster = true
         });
     }
 }
Example #2
0
 protected override IEnumerable <MonitorStatus> GetMonitorStatus()
 {
     foreach (var ms in base.GetMonitorStatus())
     {
         yield return(ms);
     }
     yield return(AvailabilityGroups.SafeData(true)
                  .Where(ag => ag.LocalReplica != null)
                  .Select(ag => ag.LocalReplica)
                  .GetWorstStatus());
 }