def check_health(host = nil)
      begin
        @http_client.health_check_proc.call(host || @urls.first)
      rescue StandardError => e
        if e.respond_to?(:http_code) && RETRY_STATUS_CODES.include?(e.http_code)
          raise NotResponding.new("#{@server_name || host} not responding", e)
        else
          raise
        end
      end
    end
def check_health(host = nil)
      begin
        @http_client.health_check_proc.call(host || @urls.first)
      rescue StandardError => e
        if e.respond_to?(:http_code) && RETRY_STATUS_CODES.include?(e.http_code)
          raise NotResponding.new("#{@server_name || host} not responding", e)
        else
          raise
        end
      end
    end
Create client for making HTTP REST requests

 @param [Array, String] urls of server being accessed as array or comma-separated string

 @option options [String] :api_version for X-API-Version header
 @option options [String] :server_name of server for use in exceptions; defaults to host name
 @option options [String] :health_check_path in URI for health check resource;
   defaults to DEFAULT_HEALTH_CHECK_PATH
 @option options [Array] :filter_params symbols or strings for names of request parameters
   whose values are to be hidden when logging; also applied to contents of any parameters
   in CONTENT_FILTERED_PARAMS; can be augmented on individual requests
 @option options [Boolean] :non_blocking i/o is to be used for HTTP requests by applying
   EM::HttpRequest and fibers instead of RestClient; requests remain synchronous
 Check health of server

 @param [String] host name of server

 @return [Object] health check result from server

 @raise [NotResponding] server is not responding