/// <summary> /// /// </summary> /// <returns></returns> public AlertSignal AsAlertSignal() { AlertSignal result = new AlertSignal { AlertServer = AlertServer, RuleUniqueId = RuleName, LastMonitored = LastMonitored.ToString(), SignalMessage = SignalMessage, Status = Status.ToString() }; return(result); }
private void PublishAlertSignal(InternalSignal signal) { AlertSignal item = signal.AsAlertSignal(); IntClient.Target.SaveObject(item, item.ItemName, item.ItemProps, TimeSpan.MaxValue); }