New updates and improvements to Lago.

LATEST aggregation

<text-code>latest_agg<text-code> allows users to compute usage based on the last value received during the period for a billable metric.

Consider the following example for the <text-code>storage<text-code> metric, where usage is aggregated based on the property <text-code>gb<text-code>:

  • The first event includes 5 GB;
  • The second event includes 7 GB; and
  • The third event includes 6 GB.

With <text-code>latest_agg<text-code>, at the end of the billing period, the total number of units used to calculate the fee will be 6, as it's the last value received.

Learn more