Skip to content

Add CloudAMQP billing plugin#74

Open
KingParmenides wants to merge 1 commit into
opencost:mainfrom
KingParmenides:codex-cloudamqp-plugin-bounty-20260511
Open

Add CloudAMQP billing plugin#74
KingParmenides wants to merge 1 commit into
opencost:mainfrom
KingParmenides:codex-cloudamqp-plugin-bounty-20260511

Conversation

@KingParmenides
Copy link
Copy Markdown

What does this PR change?

  • Adds a CloudAMQP Customer API invoice plugin backed by GET /invoices/period.
  • Uses Customer API Basic Auth with an empty username and API key password.
  • Downloads each required monthly invoice once per OpenCost request, prorates invoice line totals into daily Custom Cost windows, and falls back to invoice total when line amounts are not provided.
  • Adds config validation, README documentation, mocked invoice API tests, and the cloudamqp manifest entry.

Does this PR address any GitHub or Zendesk issues?

How was this PR tested?

  • go test ./... from pkg/plugins/cloudamqp
  • go vet ./... from pkg/plugins/cloudamqp
  • VERSION=dev COMMIT=codex ./tools/build-plugins ./pkg/plugins/cloudamqp/go.mod

Bounty

  • This is a submission for the OpenCost plugin bounty.
  • BTC address: 39Q34P8A7g375yqEr8buvNJkUbRgKfbKQZ

Signed-off-by: KingParmenides <parmenides0000@gmail.com>
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.

Cloudamqp Plugin

1 participant