Skip to content

Commit 1413a19

Browse files
rrwang7Convex, Inc.
authored and
Convex, Inc.
committed
send file storage values together because of how gauge calculations work (#31176)
GitOrigin-RevId: ae0f9320f7401d26b3cdc76f6cecac5636dec149
1 parent b7bdf2e commit 1413a19

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

crates/events/src/testing.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,9 @@ impl UsageCounterState {
179179
UsageEvent::CurrentFileStorage {
180180
tag: _,
181181
total_size: _,
182+
total_user_file_size: _,
183+
total_cloud_backup_size: _,
184+
total_snapshot_export_size: _,
182185
} => todo!(),
183186
UsageEvent::CurrentDocumentCounts { tables: _ } => todo!(),
184187
}

crates/events/src/usage.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,13 @@ pub enum UsageEvent {
109109
tables: Vec<TableDatabaseStorage>,
110110
},
111111
CurrentFileStorage {
112+
// TODO(Rebecca): tag and total_size can be cleaned up after we start using the other
113+
// fields
112114
tag: String,
113115
total_size: u64,
116+
total_user_file_size: u64,
117+
total_cloud_backup_size: u64,
118+
total_snapshot_export_size: u64,
114119
},
115120
CurrentDocumentCounts {
116121
tables: Vec<TableDocumentCount>,

0 commit comments

Comments
 (0)