SUSE-Enceladus / csp-billing-adapter

Apache License 2.0
0 stars 2 forks source link

Use next bill time #13

Closed smarlowucf closed 1 year ago

smarlowucf commented 1 year ago

There's a test event loop in host module. Integrate a next bill time to this loop. When a metering record is done we should update the cache/config with a next bill time based on billing period. This Next bill time is used in the event loop to determine when it's time to bill again. If we are on or past the time we meter a bill.

https://github.com/SUSE-Enceladus/csp-billing-adapter/blob/devel/csp_billing_adapter/host.py

smarlowucf commented 1 year ago

Note that we may have two different types of "billings". We could call one metering and one billing: