Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POC Draft: billable usage kstream poc #3012

Closed
wants to merge 4 commits into from

Conversation

kflahert
Copy link
Contributor

Testing:
./gradlew :swatch-producer-azure:quarkusDev

Create two billable usages below :
key: org123
{"org_id":"org123","billing_provider":"azure","billing_account_id":"testing;testing","snapshot_date":"2024-01-24T17:00:19.007433Z","product_id":"rhel-for-x86-els-payg","sla":"Premium","usage":"Production","uom":"vCPUs","value":"1.0"}

Wait 10 seconds:

Create another messages like below:
key: org123
{"org_id":"org123","billing_provider":"azure","billing_account_id":"test;test","snapshot_date":"2024-01-24T17:00:19.007433Z","product_id":"rhel-for-x86-els-payg","sla":"Standard","usage":"Development/Test","uom":"vCPUs","value":"3.0"}

The new message coming in should trigger the window to close for the previous usages and a log should display with a billable usage value of 2 for the "Production" usage.

@kflahert kflahert closed this Feb 13, 2024
@kflahert kflahert deleted the kflahert/Billable-usage-kstream-POC branch March 18, 2024 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant