mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +08:00
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:
@ -909,7 +909,6 @@ impl AnalyticsProvider {
|
||||
&self,
|
||||
metric: &AuthEventMetrics,
|
||||
merchant_id: &common_utils::id_type::MerchantId,
|
||||
publishable_key: &str,
|
||||
granularity: Option<Granularity>,
|
||||
time_range: &TimeRange,
|
||||
) -> types::MetricsResult<HashSet<(AuthEventMetricsBucketIdentifier, AuthEventMetricRow)>> {
|
||||
@ -917,14 +916,13 @@ impl AnalyticsProvider {
|
||||
Self::Sqlx(_pool) => Err(report!(MetricsError::NotImplemented)),
|
||||
Self::Clickhouse(pool) => {
|
||||
metric
|
||||
.load_metrics(merchant_id, publishable_key, granularity, time_range, pool)
|
||||
.load_metrics(merchant_id, granularity, time_range, pool)
|
||||
.await
|
||||
}
|
||||
Self::CombinedCkh(_sqlx_pool, ckh_pool) | Self::CombinedSqlx(_sqlx_pool, ckh_pool) => {
|
||||
metric
|
||||
.load_metrics(
|
||||
merchant_id,
|
||||
publishable_key,
|
||||
granularity,
|
||||
// Since API events are ckh only use ckh here
|
||||
time_range,
|
||||
|
||||
Reference in New Issue
Block a user