1.1 KiB
1.1 KiB
billing-service
billing-service is the v1 minute-delta and replay-safe writer for the Cloud
Network Billing & Control Plane.
It pulls windowed normalized snapshots from one or more xray-exporter
sources, computes deltas from cumulative counters, and writes idempotent usage
and billing facts into the existing accounts.svc.plus PostgreSQL schema.
Endpoints
GET /api/pingPOST /v1/jobs/collect-and-ratePOST /v1/jobs/reconcileGET /healthzGET /v1/status
Documentation
docs/design.md- current implementation design, main collect-and-rate flow, idempotency rules, and module boundariesdocs/reference/- code-level reference forcmd/andinternal/packages, including types, interfaces, and functionsdocs/README.md- documentation index and verification notesdocs/architecture.md- deployment and data-flow diagramsdocs/api.md- task API surface and upstream/downstream boundariessql/billing-service-schema.sql- bootstrap/reference DDL aligned with the currentaccounts.svc.plusaccounting schema