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); }
private static JToken AcknowledgeAlert(ISwisClient swisClient, int alertObjectId, string note) { JToken invokeResult = swisClient.InvokeAsync("Orion.AlertActive", "Acknowledge", new[] { alertObjectId }, note).Result; return(invokeResult); }