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,
	})
	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/url"
	"strings"
)
type CatHealthService struct {
	client              *Client
	pretty              bool
	local               *bool
	masterTimeout       string
	columns             []string
	sort                []string  
	disableTimestamping *bool
}
func NewCatHealthService(client *Client) *CatHealthService {
	return &CatHealthService{
		client: client,
	}
}
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) Pretty(pretty bool) *CatHealthService {
	s.pretty = pretty
	return s
}
func (s *CatHealthService) buildURL() (string, url.Values, error) {
	path := "/_cat/health"
	params := url.Values{
		"format": []string{"json"},  
	}
	if s.pretty {
		params.Set("pretty", "true")
	}
	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
}