Beispiel #1
0
        public override TaggedString GetExplanation()
        {
            var    slaves = SlaveUtility.GetSlavesInTimeout();
            string text   = "";

            if (slaves.Count > 1)
            {
                StringBuilder stringBuilder = new StringBuilder();
                foreach (var slave in slaves)
                {
                    stringBuilder.AppendLine("  - " + slave.NameShortColored.Resolve());
                }
                text = "Desc_TimeoutPlural".Translate(stringBuilder).Resolve();
            }
            else
            {
                text = "Desc_Timeout".Translate(slaves[0].NameShortColored.Resolve()).Resolve();
            }
            return(text);
        }
Beispiel #2
0
 public override AlertReport GetReport()
 {
     return(AlertReport.CulpritsAre(SlaveUtility.GetSlavesInTimeout()));
 }