code: func (a *DerivativeAggregation) Unit(unit string) *DerivativeAggregation {
  	a.unit = unit
  	return a
  }
docs: // Unit sets the unit provided, e.g. "1d" or "1y".
  // It is only useful when calculating the derivative using a date_histogram.