private URI getURI(final Map<String, String> metadata, final HealthService healthService) {
        String scheme = "http";
        for (Map.Entry<String, String> entry : metadata.entrySet()) {
            if (entry.getValue().contains("http") || entry.getValue().contains("HTTPS")) {
                scheme = "https";
                break;
            }
        }
        int port = healthService.getService().getPort();
        if (port <= 0) {
            port = "https".equals(scheme) ? 443 : 80;
        }
        String uri = String.format("%s://%s:%s", scheme, healthService.getService().getAddress(), port);
        return URI.create(uri);
    }
getHealthServices.

@param selectKey key
@param waitTime waitTime
@return return
shenyu-registry/shenyu-registry-consul/src/main/java/org/apache/shenyu/registry/consul/ConsulInstanceRegisterRepository.java