Beispiel #1
0
        public static void Main()
        {
            LoggerNLog.BasicConfig();
            LoggerNLog.Register();

            using (TestAverageLatencyAlertMonitor testAverageLatencyAlertMonitor = new TestAverageLatencyAlertMonitor()) {
                testAverageLatencyAlertMonitor.SetUp();
                testAverageLatencyAlertMonitor.TestLatencyAlert();
            }

            using (TestDynamicLatencyAlertMonitor testDynamicLatencyAlertMonitor = new TestDynamicLatencyAlertMonitor()) {
                testDynamicLatencyAlertMonitor.SetUp();
                testDynamicLatencyAlertMonitor.TestLatencyAlert();
            }

            using (TestErrorRateMonitor testErrorRateMonitor = new TestErrorRateMonitor()) {
                testErrorRateMonitor.SetUp();
                testErrorRateMonitor.TestAlert();
            }

            using (TestLatencySpikeMonitor testLatencySpikeMonitor = new TestLatencySpikeMonitor()) {
                testLatencySpikeMonitor.SetUp();
                testLatencySpikeMonitor.TestLatencyAlert();
            }

            using (TestServiceHealthMonitor testServiceHealthMonitor = new TestServiceHealthMonitor()) {
                testServiceHealthMonitor.SetUp();
                testServiceHealthMonitor.TestLatencyAlert();
            }

            using (TestSpikeAndErrorRateMonitor testSpikeAndErrorRateMonitor = new TestSpikeAndErrorRateMonitor()) {
                testSpikeAndErrorRateMonitor.SetUp();
                testSpikeAndErrorRateMonitor.TestAlert();
            }
        }
Beispiel #2
0
        public static void Main()
        {
            log4net.Config.XmlConfigurator.Configure();

            using (TestAverageLatencyAlertMonitor testAverageLatencyAlertMonitor = new TestAverageLatencyAlertMonitor()) {
                testAverageLatencyAlertMonitor.SetUp();
                testAverageLatencyAlertMonitor.TestLatencyAlert();
            }

            using (TestDynamicLatencyAlertMonitor testDynamicLatencyAlertMonitor = new TestDynamicLatencyAlertMonitor()) {
                testDynamicLatencyAlertMonitor.SetUp();
                testDynamicLatencyAlertMonitor.TestLatencyAlert();
            }

            using (TestErrorRateMonitor testErrorRateMonitor = new TestErrorRateMonitor()) {
                testErrorRateMonitor.SetUp();
                testErrorRateMonitor.TestAlert();
            }

            using (TestLatencySpikeMonitor testLatencySpikeMonitor = new TestLatencySpikeMonitor()) {
                testLatencySpikeMonitor.SetUp();
                testLatencySpikeMonitor.TestLatencyAlert();
            }

            using (TestServiceHealthMonitor testServiceHealthMonitor = new TestServiceHealthMonitor()) {
                testServiceHealthMonitor.SetUp();
                testServiceHealthMonitor.TestLatencyAlert();
            }

            using (TestSpikeAndErrorRateMonitor testSpikeAndErrorRateMonitor = new TestSpikeAndErrorRateMonitor()) {
                testSpikeAndErrorRateMonitor.SetUp();
                testSpikeAndErrorRateMonitor.TestAlert();
            }
        }