code: func (a *Agent) CheckRegister(check *AgentCheckRegistration) error {
  	r := a.c.newRequest("PUT", "/v1/agent/check/register")
  	r.obj = check
  	_, resp, err := requireOK(a.c.doRequest(r))
  	if err != nil {
  		return err
  	}
  	resp.Body.Close()
  	return nil
  }
docs: // CheckRegister is used to register a new check with
  // the local agent