Пример #1
0
        private static JToken AcknowledgeAlert(ISwisClient swisClient, JToken alert)
        {
            JToken invokeResult = swisClient.InvokeAsync("Orion.AlertStatus", "Acknowledge", new object[]
            {
                new[]
                {
                    new
                    {
                        DefinitionId = alert["AlertDefID"],
                        ObjectType   = alert["ObjectType"],
                        ObjectId     = alert["ActiveObject"]
                    }
                }
            }).Result;

            return(invokeResult);
        }
Пример #2
0
        private static JToken AcknowledgeAlert(ISwisClient swisClient, int alertObjectId, string note)
        {
            JToken invokeResult = swisClient.InvokeAsync("Orion.AlertActive", "Acknowledge", new[] { alertObjectId }, note).Result;

            return(invokeResult);
        }