code: func (a Aggregations) Stats(name string) (*AggregationStatsMetric, bool) {
  	if raw, found := a[name]; found {
  		agg := new(AggregationStatsMetric)
  		if raw == nil {
  			return agg, true
  		}
  		if err := json.Unmarshal(raw, agg); err == nil {
  			return agg, true
  		}
  	}
  	return nil, false
  }
docs: // Stats returns stats aggregation results.
  // https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-metrics-stats-aggregation.html