mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 17:19:15 +08:00
feat(analytics): Add Clickhouse based analytics (#2988)
Co-authored-by: harsh_sharma_juspay <harsh.sharma@juspay.in> Co-authored-by: Ivor Dsouza <ivor.dsouza@juspay.in> Co-authored-by: Chethan Rao <70657455+Chethan-rao@users.noreply.github.com> Co-authored-by: nain-F49FF806 <126972030+nain-F49FF806@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: akshay.s <akshay.s@juspay.in> Co-authored-by: Gnanasundari24 <118818938+Gnanasundari24@users.noreply.github.com>
This commit is contained in:
@ -14,8 +14,16 @@ use common_utils::{
|
||||
};
|
||||
|
||||
use crate::{
|
||||
admin::*, api_keys::*, cards_info::*, disputes::*, files::*, mandates::*, payment_methods::*,
|
||||
payments::*, verifications::*,
|
||||
admin::*,
|
||||
analytics::{api_event::*, sdk_events::*, *},
|
||||
api_keys::*,
|
||||
cards_info::*,
|
||||
disputes::*,
|
||||
files::*,
|
||||
mandates::*,
|
||||
payment_methods::*,
|
||||
payments::*,
|
||||
verifications::*,
|
||||
};
|
||||
|
||||
impl ApiEventMetric for TimeRange {}
|
||||
@ -63,7 +71,23 @@ impl_misc_api_event_type!(
|
||||
ApplepayMerchantVerificationRequest,
|
||||
ApplepayMerchantResponse,
|
||||
ApplepayVerifiedDomainsResponse,
|
||||
UpdateApiKeyRequest
|
||||
UpdateApiKeyRequest,
|
||||
GetApiEventFiltersRequest,
|
||||
ApiEventFiltersResponse,
|
||||
GetInfoResponse,
|
||||
GetPaymentMetricRequest,
|
||||
GetRefundMetricRequest,
|
||||
GetSdkEventMetricRequest,
|
||||
GetPaymentFiltersRequest,
|
||||
PaymentFiltersResponse,
|
||||
GetRefundFilterRequest,
|
||||
RefundFiltersResponse,
|
||||
GetSdkEventFiltersRequest,
|
||||
SdkEventFiltersResponse,
|
||||
ApiLogsRequest,
|
||||
GetApiEventMetricRequest,
|
||||
SdkEventsRequest,
|
||||
ReportRequest
|
||||
);
|
||||
|
||||
#[cfg(feature = "stripe")]
|
||||
@ -76,3 +100,9 @@ impl_misc_api_event_type!(
|
||||
CustomerPaymentMethodListResponse,
|
||||
CreateCustomerResponse
|
||||
);
|
||||
|
||||
impl<T> ApiEventMetric for MetricsResponse<T> {
|
||||
fn get_api_event_type(&self) -> Option<ApiEventsType> {
|
||||
Some(ApiEventsType::Miscellaneous)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user