code: func (h *Health) State(state string, q *QueryOptions) (HealthChecks, *QueryMeta, error) {
  	switch state {
  	case HealthAny:
  	case HealthWarning:
  	case HealthCritical:
  	case HealthPassing:
  	default:
  		return nil, nil, fmt.Errorf("Unsupported state: %v", state)
  	}
  	r := h.c.newRequest("GET", "/v1/health/state/"+state)
  	r.setQueryOptions(q)
  	rtt, resp, err := requireOK(h.c.doRequest(r))
  	if err != nil {
  		return nil, nil, err
  	}
  	defer resp.Body.Close()
  
  	qm := &QueryMeta{}
  	parseQueryMeta(resp, qm)
  	qm.RequestTime = rtt
  
  	var out HealthChecks
  	if err := decodeBody(resp, &out); err != nil {
  		return nil, nil, err
  	}
  	return out, qm, nil
  }
docs: // State is used to retrieve all the checks in a given state.
  // The wildcard "any" state can also be used for all checks.