24 Commits

Author SHA1 Message Date
Sven Efftinge
1fe5162c9f [usage] store more data for in usage entry 2022-09-07 17:10:22 +02:00
Milan Pavlik
7a5443ed4a [usage] Exclude workspace instances without a startedTime 2022-09-07 09:29: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
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
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
Sven Efftinge
ba687e5c23 [usage] more workspace instance fetch methods 2022-09-05 11:26:09 +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
1c3090f88e [usage] Fix test for listing usage with pagination 2022-08-31 21:58:16 +02:00
Alex Tugarev
a8d0889405 Add pagination to list usage 2022-08-31 15:14:16 +02:00
Milan Pavlik
dba77a55e6 [usage] Upload report with more details 2022-08-30 14:52:15 +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
Milan Pavlik
fc10f0b13a [usage] Implement CollectUsage 2022-08-02 08:53:46 -03:00
Milan Pavlik
2b6778bcd9 [usage] Implement ordering 2022-07-25 06:59:20 -03:00
Milan Pavlik
fd0b758c90 [usage] By default sort results descending 2022-07-22 11:47:17 -03:00
Milan Pavlik
0674341b6c [usage] ListUsage filters by time range 2022-07-22 06:57:17 -03:00
Milan Pavlik
ce2d00df02 [usage] Extend go model with extra fields for WorkspaceInstanceUsage 2022-07-19 08:58:14 +02:00
Andrew Farries
e2385352a4 [usage] Implement GetBilledUsage rpc 2022-07-18 13:57:13 +02:00
Gero Posmyk-Leinemann
0a83195769 [usage] Dummy implementation of UsageService 2022-07-12 16:02:00 +02:00