func (s *CatHealthService) Do(ctx context.Context) (CatHealthResponse, error) {
	path, params, err := s.buildURL()
	if err != nil {
		return nil, err
	}
	res, err := s.client.PerformRequest(ctx, PerformRequestOptions{
		Method:  "GET",
		Path:    path,
		Params:  params,
		Headers: s.headers,
	})
	if err != nil {
		return nil, err
	}
	var ret CatHealthResponse
	if err := s.client.decoder.Decode(res.Body, &ret); err != nil {
		return nil, err
	}
	return ret, nil
}
Do executes the operation.
package elastic
import (
	"context"
	"fmt"
	"net/http"
	"net/url"
	"strings"
)
type CatHealthService struct {
	client *Client
	pretty     *bool        
	human      *bool        
	errorTrace *bool        
	filterPath []string     
	headers    http.Header  
	local               *bool
	masterTimeout       string
	columns             []string
	sort                []string  
	disableTimestamping *bool
}
func NewCatHealthService(client *Client) *CatHealthService {
	return &CatHealthService{
		client: client,
	}
}
func (s *CatHealthService) Pretty(pretty bool) *CatHealthService {
	s.pretty = &pretty
	return s
}
func (s *CatHealthService) Human(human bool) *CatHealthService {
	s.human = &human
	return s
}
func (s *CatHealthService) ErrorTrace(errorTrace bool) *CatHealthService {
	s.errorTrace = &errorTrace
	return s
}
func (s *CatHealthService) FilterPath(filterPath ...string) *CatHealthService {
	s.filterPath = filterPath
	return s
}
func (s *CatHealthService) Header(name string, value string) *CatHealthService {
	if s.headers == nil {
		s.headers = http.Header{}
	}
	s.headers.Add(name, value)
	return s
}
func (s *CatHealthService) Headers(headers http.Header) *CatHealthService {
	s.headers = headers
	return s
}
func (s *CatHealthService) Local(local bool) *CatHealthService {
	s.local = &local
	return s
}
func (s *CatHealthService) MasterTimeout(masterTimeout string) *CatHealthService {
	s.masterTimeout = masterTimeout
	return s
}
func (s *CatHealthService) Columns(columns ...string) *CatHealthService {
	s.columns = columns
	return s
}
func (s *CatHealthService) Sort(fields ...string) *CatHealthService {
	s.sort = fields
	return s
}
func (s *CatHealthService) DisableTimestamping(disable bool) *CatHealthService {
	s.disableTimestamping = &disable
	return s
}
func (s *CatHealthService) buildURL() (string, url.Values, error) {
	path := "/_cat/health"
	params := url.Values{
		"format": []string{"json"},  
	}
	if v := s.pretty; v != nil {
		params.Set("pretty", fmt.Sprint(*v))
	}
	if v := s.human; v != nil {
		params.Set("human", fmt.Sprint(*v))
	}
	if v := s.errorTrace; v != nil {
		params.Set("error_trace", fmt.Sprint(*v))
	}
	if len(s.filterPath) > 0 {
		params.Set("filter_path", strings.Join(s.filterPath, ","))
	}
	if v := s.local; v != nil {
		params.Set("local", fmt.Sprint(*v))
	}
	if s.masterTimeout != "" {
		params.Set("master_timeout", s.masterTimeout)
	}
	if len(s.sort) > 0 {
		params.Set("s", strings.Join(s.sort, ","))
	}
	if v := s.disableTimestamping; v != nil {
		params.Set("ts", fmt.Sprint(*v))
	}
	if len(s.columns) > 0 {
		params.Set("h", strings.Join(s.columns, ","))
	}
	return path, params, nil
}