DeleteHealthMonitor() public method

public DeleteHealthMonitor ( string monitorId ) : bool
monitorId string
return bool
        public void UpdateHealthMonitorTest()
        {
            var os = new OpenStackMember(UserName, Password, TenantName, TenantId);

            string monitorType = "TCP"; // PING or TCP or HTTP
            int delay = 5; // 5-10
            int maxRetries = 1; // 1-5
            string urlPath = null;
            string expectedCodes = null;

            // create
            var monitor = os.CreateHealthMonitor(monitorType, delay, maxRetries, urlPath, expectedCodes);

            try
            {
                // update
                int newDelay = 6;
                int newMaxRetries = 3;
                string newUrlPath = "http://www.google.com";
                monitor = os.UpdateHealthMonitor(monitor.Id, newDelay, newMaxRetries, newUrlPath);

                Assert.IsNotNull(monitor);
            }
            finally
            {
                Assert.IsTrue(os.DeleteHealthMonitor(monitor.Id));
            }
        }
        public void CreateHealthMonitorTest()
        {
            var os = new OpenStackMember(UserName, Password, TenantName, TenantId);

            string monitorType = "TCP"; // PING or TCP or HTTP
            int delay = 10; // 5-10
            int maxRetries = 1; // 1-5
            string urlPath = null;
            string expectedCodes = null;

            var monitor = os.CreateHealthMonitor(monitorType, delay, maxRetries, urlPath, expectedCodes);
            Assert.IsNotNull(monitor);

            Assert.IsTrue(os.DeleteHealthMonitor(monitor.Id));
        }