def service(s, options = {})
      custom_params = []
      custom_params << use_named_parameter('dc', options[:dc]) if options[:dc]
      custom_params << ['passing'] if options[:passing]
      custom_params << use_named_parameter('tag', options[:tag]) if options[:tag]
      custom_params << use_named_parameter('near', options[:near]) if options[:near]

      ret = send_get_request(@conn, ["/v1/health/service/#{s}"], options, custom_params)
      JSON.parse(ret.body).map { |service| OpenStruct.new service }
    end
def service(s, options = {})
      custom_params = []
      custom_params << use_named_parameter('dc', options[:dc]) if options[:dc]
      custom_params << ['passing'] if options[:passing]
      custom_params << use_named_parameter('tag', options[:tag]) if options[:tag]
      custom_params << use_named_parameter('near', options[:near]) if options[:near]

      ret = send_get_request(@conn, ["/v1/health/service/#{s}"], options, custom_params)
      JSON.parse(ret.body).map { |service| OpenStruct.new service }
    end
Get service health
 @param s [String] the service
 @param options [Hash] options parameter hash
 @return [OpenStruct] all data associated with the node
 rubocop:disable PerceivedComplexity