feat(analytics): refactor and rewrite authentication related analytics (#7433)

Co-authored-by: Sandeep Kumar <sandeep.kumar@Sandeep-Kumar-LVF93XQXPC.local>
This commit is contained in:
Sandeep Kumar
2025-03-06 16:31:31 +05:30
committed by GitHub
parent ea817060cf
commit 1ff273e137
18 changed files with 199 additions and 194 deletions

View File

@ -138,6 +138,7 @@ impl AnalyticsDataSource for ClickhouseClient {
| AnalyticsCollection::FraudCheck
| AnalyticsCollection::PaymentIntent
| AnalyticsCollection::PaymentIntentSessionized
| AnalyticsCollection::Authentications
| AnalyticsCollection::Dispute => {
TableEngine::CollapsingMergeTree { sign: "sign_flag" }
}
@ -457,6 +458,7 @@ impl ToSql<ClickhouseClient> for AnalyticsCollection {
Self::Dispute => Ok("dispute".to_string()),
Self::DisputeSessionized => Ok("sessionizer_dispute".to_string()),
Self::ActivePaymentsAnalytics => Ok("active_payments".to_string()),
Self::Authentications => Ok("authentications".to_string()),
}
}
}