mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-11 18:59:20 +08:00
feat(analytics): FRM Analytics (#4880)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Abhitator216 <abhishek.kanojia@juspay.in> Co-authored-by: Abhishek Kanojia <89402434+Abhitator216@users.noreply.github.com> Co-authored-by: ivor-juspay <138492857+ivor-juspay@users.noreply.github.com> Co-authored-by: Sampras Lopes <sampras.lopes@juspay.in>
This commit is contained in:
@@ -2,6 +2,7 @@ use api_models::analytics::{
|
||||
api_event::{ApiEventDimensions, ApiEventMetrics},
|
||||
auth_events::AuthEventMetrics,
|
||||
disputes::{DisputeDimensions, DisputeMetrics},
|
||||
frm::{FrmDimensions, FrmMetrics},
|
||||
payment_intents::{PaymentIntentDimensions, PaymentIntentMetrics},
|
||||
payments::{PaymentDimensions, PaymentMetrics},
|
||||
refunds::{RefundDimensions, RefundMetrics},
|
||||
@@ -22,6 +23,10 @@ pub fn get_refund_dimensions() -> Vec<NameDescription> {
|
||||
RefundDimensions::iter().map(Into::into).collect()
|
||||
}
|
||||
|
||||
pub fn get_frm_dimensions() -> Vec<NameDescription> {
|
||||
FrmDimensions::iter().map(Into::into).collect()
|
||||
}
|
||||
|
||||
pub fn get_sdk_event_dimensions() -> Vec<NameDescription> {
|
||||
SdkEventDimensions::iter().map(Into::into).collect()
|
||||
}
|
||||
@@ -42,6 +47,10 @@ pub fn get_refund_metrics_info() -> Vec<NameDescription> {
|
||||
RefundMetrics::iter().map(Into::into).collect()
|
||||
}
|
||||
|
||||
pub fn get_frm_metrics_info() -> Vec<NameDescription> {
|
||||
FrmMetrics::iter().map(Into::into).collect()
|
||||
}
|
||||
|
||||
pub fn get_sdk_event_metrics_info() -> Vec<NameDescription> {
|
||||
SdkEventMetrics::iter().map(Into::into).collect()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user