getlago / lago-python-client

Python wrapper for the Lago Rest API
MIT License
20 stars 10 forks source link

feat(weighted-sum): Add weighted sum fields to billable metric #192

Closed vincent-pochet closed 12 months ago

vincent-pochet commented 1 year ago

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: