code: func (e *Event) List(name string, q *QueryOptions) ([]*UserEvent, *QueryMeta, error) {
  	r := e.c.newRequest("GET", "/v1/event/list")
  	r.setQueryOptions(q)
  	if name != "" {
  		r.params.Set("name", name)
  	}
  	rtt, resp, err := requireOK(e.c.doRequest(r))
  	if err != nil {
  		return nil, nil, err
  	}
  	defer resp.Body.Close()
  
  	qm := &QueryMeta{}
  	parseQueryMeta(resp, qm)
  	qm.RequestTime = rtt
  
  	var entries []*UserEvent
  	if err := decodeBody(resp, &entries); err != nil {
  		return nil, nil, err
  	}
  	return entries, qm, nil
  }
docs: // List is used to get the most recent events an agent has received.
  // This list can be optionally filtered by the name. This endpoint supports
  // quasi-blocking queries. The index is not monotonic, nor does it provide provide
  // LastContact or KnownLeader.