public static DiscoveryUpstreamDTO buildDefaultDiscoveryUpstreamDTO(final String host, final Integer port, final String protocol, final String namespaceId) {
        DiscoveryUpstreamDTO discoveryUpstreamDTO = new DiscoveryUpstreamDTO();
        discoveryUpstreamDTO.setProps("{\"warmupTime\":\"10\"}");
        discoveryUpstreamDTO.setUrl(buildUrl(host, port));
        discoveryUpstreamDTO.setProtocol(protocol);
        discoveryUpstreamDTO.setStatus(0);
        discoveryUpstreamDTO.setWeight(DEFAULT_WEIGHT);
        discoveryUpstreamDTO.setNamespaceId(namespaceId);
        return discoveryUpstreamDTO;
    }
buildDefaultDiscoveryUpstreamDTO.

@param host     host
@param port     port
@param protocol protocol
@param namespaceId namespaceId
@return DiscoveryUpstreamDTO
shenyu-admin/src/main/java/org/apache/shenyu/admin/utils/CommonUpstreamUtils.java