Skip to content

Commit

Permalink
send file storage values together because of how gauge calculations w…
Browse files Browse the repository at this point in the history
…ork (#31176)

GitOrigin-RevId: ae0f9320f7401d26b3cdc76f6cecac5636dec149
  • Loading branch information
rrwang7 authored and Convex, Inc. committed Oct 29, 2024
1 parent b7bdf2e commit 1413a19
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/events/src/testing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ impl UsageCounterState {
UsageEvent::CurrentFileStorage {
tag: _,
total_size: _,
total_user_file_size: _,
total_cloud_backup_size: _,
total_snapshot_export_size: _,
} => todo!(),
UsageEvent::CurrentDocumentCounts { tables: _ } => todo!(),
}
Expand Down
5 changes: 5 additions & 0 deletions crates/events/src/usage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,13 @@ pub enum UsageEvent {
tables: Vec<TableDatabaseStorage>,
},
CurrentFileStorage {
// TODO(Rebecca): tag and total_size can be cleaned up after we start using the other
// fields
tag: String,
total_size: u64,
total_user_file_size: u64,
total_cloud_backup_size: u64,
total_snapshot_export_size: u64,
},
CurrentDocumentCounts {
tables: Vec<TableDocumentCount>,
Expand Down

0 comments on commit 1413a19

Please sign in to comment.