Exemple #1
0
        /// <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);
        }
Exemple #2
0
        private void PublishAlertSignal(InternalSignal signal)
        {
            AlertSignal item = signal.AsAlertSignal();

            IntClient.Target.SaveObject(item, item.ItemName, item.ItemProps, TimeSpan.MaxValue);
        }