Skip to content

feat(billing): Add UsagePricer endpoint#191

Merged
brendanhsentry merged 9 commits intomainfrom
brendan/usage-pricer
Mar 25, 2026
Merged

feat(billing): Add UsagePricer endpoint#191
brendanhsentry merged 9 commits intomainfrom
brendan/usage-pricer

Conversation

@brendanhsentry
Copy link
Copy Markdown
Member

@brendanhsentry brendanhsentry commented Mar 23, 2026

Defines UsagePricer inputs and outputs

  • has the same request message as UsageService (minus categories bc we'll just fetch all categories), we only need organization_id to get Contracts and can turn the timestamps into dates for Trials
  • outputs usage volume and payg spend for each SKU (or shared SKU). Quota enforcer will have access to the Contract which will tell us the reserved volume and PAYG budget(s) so that should be sufficient for determining when to rate limit.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 23, 2026

The latest Buf updates on your PR. Results from workflow ci / buf-checks (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed⏩ skipped✅ passed✅ passedMar 25, 2026, 5:57 PM

@brendanhsentry brendanhsentry requested a review from a team March 24, 2026 19:02
@brendanhsentry brendanhsentry marked this pull request as ready for review March 24, 2026 19:02
@brendanhsentry brendanhsentry merged commit 4bf4586 into main Mar 25, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants