Exemplo n.º 1
0
        public void monitoringMetricServerFilteredSimple()
        {
            List <Filter> filter = new List <Filter>();

            filter.Add(new Filter("view", FilterOperator.Equal, "users"));

            List <MonitoringMetric> mmListFull = MonitoringMetric.index(liveTestServerID);

            Assert.IsNotNull(mmListFull);
            Assert.IsTrue(mmListFull.Count > 0);

            List <MonitoringMetric> mmListFiltered = MonitoringMetric.index(liveTestServerID, filter);

            Assert.IsNotNull(mmListFiltered);
            Assert.IsTrue(mmListFiltered.Count > 0);

            Assert.IsTrue(mmListFull.Count > mmListFiltered.Count);

            foreach (MonitoringMetric mm in mmListFull)
            {
                Assert.IsTrue(!string.IsNullOrWhiteSpace(mm.graph_href));
            }

            foreach (MonitoringMetric mm in mmListFiltered)
            {
                Assert.IsTrue(!string.IsNullOrWhiteSpace(mm.graph_href));
            }
        }
Exemplo n.º 2
0
        public void monitoringMetricIndexSimple()
        {
            List <MonitoringMetric> mmListFull = MonitoringMetric.index(azureCloudID, currentInstance.ID);

            Assert.IsNotNull(mmListFull);
            Assert.IsTrue(mmListFull.Count > 0);
        }
Exemplo n.º 3
0
        public void monitoringMetricServerIndexSimple()
        {
            List <MonitoringMetric> mmListFull = MonitoringMetric.index(liveTestServerID);

            Assert.IsNotNull(mmListFull);
            Assert.IsTrue(mmListFull.Count > 0);

            foreach (MonitoringMetric mm in mmListFull)
            {
                Assert.IsTrue(!string.IsNullOrWhiteSpace(mm.graph_href));
            }
        }
Exemplo n.º 4
0
        public void monitoringMetricFull()
        {
            List <Filter> filter = new List <Filter>();

            filter.Add(new Filter("view", FilterOperator.Equal, "users"));
            List <MonitoringMetric> mmList = MonitoringMetric.index(currentInstance.cloud.ID, currentInstance.ID, filter, testPeriod, testSize, testTitle, testTimeZone);

            Assert.IsNotNull(mmList);
            Assert.IsTrue(mmList.Count > 0);

            foreach (MonitoringMetric mm in mmList)
            {
                Assert.IsTrue(!string.IsNullOrWhiteSpace(mm.graph_href));
            }
        }