mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 17:47:54 +08:00
feat(analytics): added dispute as uri param to analytics info api (#3693)
This commit is contained in:
committed by
GitHub
parent
e0d8bb207e
commit
76ac1a753a
@ -1,5 +1,6 @@
|
||||
use api_models::analytics::{
|
||||
api_event::{ApiEventDimensions, ApiEventMetrics},
|
||||
disputes::{DisputeDimensions, DisputeMetrics},
|
||||
payments::{PaymentDimensions, PaymentMetrics},
|
||||
refunds::{RefundDimensions, RefundMetrics},
|
||||
sdk_events::{SdkEventDimensions, SdkEventMetrics},
|
||||
@ -38,3 +39,11 @@ pub fn get_sdk_event_metrics_info() -> Vec<NameDescription> {
|
||||
pub fn get_api_event_metrics_info() -> Vec<NameDescription> {
|
||||
ApiEventMetrics::iter().map(Into::into).collect()
|
||||
}
|
||||
|
||||
pub fn get_dispute_metrics_info() -> Vec<NameDescription> {
|
||||
DisputeMetrics::iter().map(Into::into).collect()
|
||||
}
|
||||
|
||||
pub fn get_dispute_dimensions() -> Vec<NameDescription> {
|
||||
DisputeDimensions::iter().map(Into::into).collect()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user