示例#1
0
        private static void showAlerts()
        {
            List <Alert> alerts = dashboardManager.getAllAlerts();

            foreach (Alert alert in alerts)
            {
                Console.WriteLine("=======================");
                Console.WriteLine("Alert: " + alert.AlertId);
                Console.WriteLine("Wanneer " + alert.Waarde + " " + alert.Operator + " " + alert.DataConfig.DataType);
                Console.WriteLine("Status: " + alert.Status);
                Element element = elementManager.getElementByNaam(alert.DataConfig.Element.Naam, alert.DataConfig.Element.GetType());
                Console.WriteLine("Trend: " + postManager.calculateTrend(alert.DataConfig, element));
            }
        }