mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-11 18:59:20 +08:00
feat(analytics): add new filters, dimensions and metrics for authentication analytics (#7451)
Co-authored-by: Sandeep Kumar <sandeep.kumar@Sandeep-Kumar-LVF93XQXPC.local>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use api_models::analytics::{
|
||||
api_event::{ApiEventDimensions, ApiEventMetrics},
|
||||
auth_events::AuthEventMetrics,
|
||||
auth_events::{AuthEventDimensions, AuthEventMetrics},
|
||||
disputes::{DisputeDimensions, DisputeMetrics},
|
||||
frm::{FrmDimensions, FrmMetrics},
|
||||
payment_intents::{PaymentIntentDimensions, PaymentIntentMetrics},
|
||||
@@ -47,6 +47,16 @@ pub fn get_payment_intent_dimensions() -> Vec<NameDescription> {
|
||||
.collect()
|
||||
}
|
||||
|
||||
pub fn get_auth_event_dimensions() -> Vec<NameDescription> {
|
||||
vec![
|
||||
AuthEventDimensions::AuthenticationConnector,
|
||||
AuthEventDimensions::MessageVersion,
|
||||
]
|
||||
.into_iter()
|
||||
.map(Into::into)
|
||||
.collect()
|
||||
}
|
||||
|
||||
pub fn get_refund_dimensions() -> Vec<NameDescription> {
|
||||
RefundDimensions::iter().map(Into::into).collect()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user