public void deregisterCheck ( String checkId ) { final URI uri = createURI ( "/check/deregister/" + checkId ) ; HTTP . Response response = HTTP . getResponse ( uri . toString ( ) ) ; if ( response . status ( ) != 200 ) { die ( "Error removing registration of service with Consul" , uri , checkId , response . status ( ) , response . statusMessageAsString ( ) , response . payloadAsString ( ) ) ; } }
De - registers a Health Check with the Agent