code: func (s *HTTPServer) AgentHost(resp http.ResponseWriter, req *http.Request) (interface{}, error) {
  	// Fetch the ACL token, if any, and enforce agent policy.
  	var token string
  	s.parseToken(req, &token)
  	rule, err := s.agent.resolveToken(token)
  	if err != nil {
  		return nil, err
  	}
  
  	if rule != nil && !rule.OperatorRead() {
  		return nil, acl.ErrPermissionDenied
  	}
  
  	return debug.CollectHostInfo(), nil
  }
docs: // AgentHost
  //
  // GET /v1/agent/host
  //
  // Retrieves information about resources available and in-use for the
  // host the agent is running on such as CPU, memory, and disk usage. Requires
  // a operator:read ACL token.