public void check ( String checkId , Status status , String note ) { final URI uri = createURI ( "/check/" + status . getUri ( ) + "/" + checkId ) ; final HTTP . Response httpResponse = Str . isEmpty ( note ) ? HTTP . getResponse ( uri . toString ( ) ) : HTTP . getResponse ( uri . toString ( ) + "?note=" + note ) ; if ( httpResponse . code ( ) != 200 ) { notRegistered ( "Unable to perform check" , uri , httpResponse . code ( ) , httpResponse . statusMessageAsString ( ) , httpResponse . body ( ) ) ; } }
Checks in with Consul .