mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat(routing): success based routing metrics (#5951)
Co-authored-by: Aprabhat19 <amishaprabhat@gmail.com> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Amisha Prabhat <55580080+Aprabhat19@users.noreply.github.com>
This commit is contained in:
@ -259,6 +259,16 @@ pub struct RoutableConnectorChoiceWithStatus {
|
||||
pub routable_connector_choice: RoutableConnectorChoice,
|
||||
pub status: bool,
|
||||
}
|
||||
|
||||
impl RoutableConnectorChoiceWithStatus {
|
||||
pub fn new(routable_connector_choice: RoutableConnectorChoice, status: bool) -> Self {
|
||||
Self {
|
||||
routable_connector_choice,
|
||||
status,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Copy, Clone, serde::Serialize, serde::Deserialize, strum::Display, ToSchema)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
#[strum(serialize_all = "snake_case")]
|
||||
|
||||
Reference in New Issue
Block a user