For metrics that are charged upon a time frame, Lago is not able to calculate correctly the charge. For instance, imagine you want to price the number of GB/seconds used by a server. Currently, you can either calculate the number of seconds used, or the number of Gigabytes used, but not both at the same time.
Description
This PR adds:
the new Event#timestamp format with miliseconds precision
The new weighted_sum_agg aggregation value in the BillableMetric#aggregation_type enumeation
Context
For metrics that are charged upon a time frame, Lago is not able to calculate correctly the charge. For instance, imagine you want to price the number of GB/seconds used by a server. Currently, you can either calculate the number of seconds used, or the number of Gigabytes used, but not both at the same time.
Description
This PR adds:
Event#timestamp
format with miliseconds precisionweighted_sum_agg
aggregation value in theBillableMetric#aggregation_type
enumeationBillableMetric#weighted_interval
enum