mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-11-04 05:59:48 +08:00 
			
		
		
		
	refactor: exposed auth analytics at merchant,org and profile levels (#8335)
This commit is contained in:
		@ -912,7 +912,7 @@ impl AnalyticsProvider {
 | 
			
		||||
        &self,
 | 
			
		||||
        metric: &AuthEventMetrics,
 | 
			
		||||
        dimensions: &[AuthEventDimensions],
 | 
			
		||||
        merchant_id: &common_utils::id_type::MerchantId,
 | 
			
		||||
        auth: &AuthInfo,
 | 
			
		||||
        filters: &AuthEventFilters,
 | 
			
		||||
        granularity: Option<Granularity>,
 | 
			
		||||
        time_range: &TimeRange,
 | 
			
		||||
@ -921,20 +921,13 @@ impl AnalyticsProvider {
 | 
			
		||||
            Self::Sqlx(_pool) => Err(report!(MetricsError::NotImplemented)),
 | 
			
		||||
            Self::Clickhouse(pool) => {
 | 
			
		||||
                metric
 | 
			
		||||
                    .load_metrics(
 | 
			
		||||
                        merchant_id,
 | 
			
		||||
                        dimensions,
 | 
			
		||||
                        filters,
 | 
			
		||||
                        granularity,
 | 
			
		||||
                        time_range,
 | 
			
		||||
                        pool,
 | 
			
		||||
                    )
 | 
			
		||||
                    .load_metrics(auth, dimensions, filters, granularity, time_range, pool)
 | 
			
		||||
                    .await
 | 
			
		||||
            }
 | 
			
		||||
            Self::CombinedCkh(_sqlx_pool, ckh_pool) | Self::CombinedSqlx(_sqlx_pool, ckh_pool) => {
 | 
			
		||||
                metric
 | 
			
		||||
                    .load_metrics(
 | 
			
		||||
                        merchant_id,
 | 
			
		||||
                        auth,
 | 
			
		||||
                        dimensions,
 | 
			
		||||
                        filters,
 | 
			
		||||
                        granularity,
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user