Milan Pavlik
7a5443ed4a
[usage] Exclude workspace instances without a startedTime
2022-09-07 09:29:22 +02:00
Milan Pavlik
2882e7ede4
[usage] Add listing of credit balance
2022-09-07 07:48:22 +02:00
Milan Pavlik
c9ce4dd64b
[usage] Serialize metadata into usage records
2022-09-06 16:31:21 +02:00
Milan Pavlik
eb9b5799f6
[usage] Filter out not started workspace instances
2022-09-06 16:00:21 +02:00
Milan Pavlik
db2688eb2d
[usage] Drop big log message
2022-09-06 14:20:21 +02:00
Milan Pavlik
3328f5783b
[usage] Cleanup usage records after test
2022-09-06 12:35:21 +02:00
Milan Pavlik
d70b54d2db
[usage] Save inserted and updated records in the DB
2022-09-06 11:44:21 +02:00
Sven Efftinge
e01c880447
Added API call to fetch usage data
2022-09-06 09:58:21 +02:00
Sven Efftinge
29388c9764
Added API call to fetch usage data
2022-09-06 09:04:21 +02:00
Milan Pavlik
a03681ac1d
[usage] Implment ledger control loop
2022-09-06 06:13:21 +02:00
Milan Pavlik
536a13dc18
[usage] Find running and stopped instances in ledger reconciler
2022-09-05 13:52:20 +02:00
Milan Pavlik
a802c11018
[usage] Invoke ReconcileUsageWithLedger from controller
2022-09-05 12:03:20 +02:00
Sven Efftinge
ba687e5c23
[usage] more workspace instance fetch methods
2022-09-05 11:26:09 +02:00
Sven Efftinge
f1c4783096
[usage] store and fetch usage entries
2022-09-05 11:26:09 +02:00
Milan Pavlik
754d0ebba9
[usage] Setup ledger reconciler tick
2022-09-02 13:53:17 +02:00
Sven Efftinge
f54482b8c3
Added Usage table
2022-09-02 11:33:17 +02:00
Milan Pavlik
754a4db44d
[usage] Drop raw sessions from usage report to cut size in half
2022-09-01 07:32:16 +02:00
Milan Pavlik
2d0b1a1b1b
[usage] Report upload/download metrics for usage report
2022-09-01 07:28:16 +02:00
Milan Pavlik
1c3090f88e
[usage] Fix test for listing usage with pagination
2022-08-31 21:58:16 +02:00
Milan Pavlik
4b134683bc
[billing] Fix usage report download
2022-08-31 21:57:16 +02:00
Milan Pavlik
28f6980a26
[stripe] Handle invoice finalization
2022-08-31 16:06:16 +02:00
Alex Tugarev
a8d0889405
Add pagination to list usage
2022-08-31 15:14:16 +02:00
Milan Pavlik
dd6cdf96ec
[usage] Fix report to JSON conversion
2022-08-31 14:39:16 +02:00
Milan Pavlik
7bc22735ea
[usage] Normalize json keys in report
2022-08-30 15:19:15 +02:00
Milan Pavlik
8b11db368b
[usage] Fix content service nil pointer
2022-08-30 14:56:14 +02:00
Milan Pavlik
dba77a55e6
[usage] Upload report with more details
2022-08-30 14:52:15 +02:00
Milan Pavlik
33c613c5da
[stripe] Set reportId on invoices after updating credits
2022-08-30 11:36:15 +02:00
Milan Pavlik
9df045e11c
[usage] Fetch sessions from usage report instead of from RPC arguments
2022-08-30 11:00:14 +02:00
Milan Pavlik
f5a13dd164
[usage] Deprecate sessions in ReconcileUsage & UpdateInvoices
2022-08-30 11:00:14 +02:00
Milan Pavlik
5c4fe01d59
[usage] Disable controller when schedule is empty
2022-08-26 16:30:11 +02:00
Milan Pavlik
8d009263e1
[billing] Set report ID on Invoices when updating usage credits
2022-08-26 13:40:11 +02:00
Alex Tugarev
aaf9c3af97
fixup
2022-08-25 17:47:10 +02:00
Alex Tugarev
030c183993
Use upcoming invoice
2022-08-25 16:07:10 +02:00
Laurie T. Malau
8b201eea37
Get CostCenter
2022-08-25 11:13:41 +02:00
Milan Pavlik
9a7119d05d
[usage] Return report_id from ReconcileUsage RPC
2022-08-24 10:34:40 +02:00
Alex Tugarev
d3147bcb55
regenerate usage-api
2022-08-23 12:08:39 +02:00
Laurie T. Malau
1a8512b33d
CostCenter model
2022-08-23 11:38:39 +02:00
Manuel Alejandro de Brito Fontes
438ffab694
Update k8s dependencies to v0.24.4
2022-08-23 08:18:39 +02:00
Manuel Alejandro de Brito Fontes
7b4a885ee3
Update k8s dependencies to v0.24.3
2022-08-23 08:18:39 +02:00
Laurie T. Malau
9c22f43920
Add config for billInstancesAfter
2022-08-22 13:09:38 +02:00
Jan Keromnes
a2cf9d343b
[usage] In tests, use slightly different creation/started times and stopping/stopped time
2022-08-22 08:23:38 +02:00
Jan Keromnes
ff7c3d696d
[usage] Change instance runtime calculation: creationTime → startedTime, stoppedTime → stoppingTime
2022-08-22 08:23:38 +02:00
Gero Posmyk-Leinemann
d186e8342f
[usage] Review comments
2022-08-18 09:47:34 +02:00
Gero Posmyk-Leinemann
c3cd684930
[usage] Test for and fix negative credits in GenerateUsageReport
2022-08-18 09:47:34 +02:00
Laurie T. Malau
87fbe606ea
Fix return
2022-08-12 13:08:29 +02:00
Laurie T. Malau
0e3702e073
Implement setBilledSession
2022-08-11 09:15:55 +02:00
Andrew Farries
8a8d2eab6d
Add placeholder implementation of FinalizeInvoice
2022-08-10 14:48:54 +02:00
Andrew Farries
33b1603b64
Set client send and receive message sizes
2022-08-09 16:57:53 +02:00
Andrew Farries
84f77d2340
Test billingService can receive large messages
...
Add a test to ensure that the gRPC server can receive very large message
payloads.
Use the billing RPC service `UpdateInvoices` RPC as the RPC to call as
that is the one we see failing in production.
2022-08-09 16:57:53 +02:00
Milan Pavlik
98715106f5
[usage] Add grpc client metrics, up max call sizes
2022-08-05 09:56:49 -03:00