text
stringlengths
70
351k
source
stringclasses
4 values
// file: hyperswitch/crates/analytics/src/sqlx.rs | crate: analytics use std::{fmt::Display, str::FromStr}; use common_utils::{ errors::{CustomResult, ParsingError}, DbConnectionParams, }; use sqlx::{ postgres::{PgArgumentBuffer, PgPoolOptions, PgRow, PgTypeInfo, PgValueRef}, Decode, Encode, Error::...
ast_fragments
// file: hyperswitch/crates/analytics/src/sqlx.rs | crate: analytics use common_utils::{ errors::{CustomResult, ParsingError}, DbConnectionParams, }; use sqlx::{ postgres::{PgArgumentBuffer, PgPoolOptions, PgRow, PgTypeInfo, PgValueRef}, Decode, Encode, Error::ColumnNotFound, FromRow, Pool, Post...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/sqlx.rs | crate: analytics use sqlx::{ postgres::{PgArgumentBuffer, PgPoolOptions, PgRow, PgTypeInfo, PgValueRef}, Decode, Encode, Error::ColumnNotFound, FromRow, Pool, Postgres, Row, }; fn type_info() -> PgTypeInfo { <|fim_suffix|> <|fim_middle|>...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/sqlx.rs | crate: analytics use std::{fmt::Display, str::FromStr}; use sqlx::{ postgres::{PgArgumentBuffer, PgPoolOptions, PgRow, PgTypeInfo, PgValueRef}, Decode, Encode, Error::ColumnNotFound, FromRow, Pool, Postgres, Row, }; use super::{ heal...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/sqlx.rs | crate: analytics use sqlx::{ postgres::{PgArgumentBuffer, PgPoolOptions, PgRow, PgTypeInfo, PgValueRef}, Decode, Encode, Error::ColumnNotFound, FromRow, Pool, Postgres, Row, }; fn size_hint(&self) -> usize { {<|fim_suffix|> <|fim_middle|...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/sqlx.rs | crate: analytics use std::{fmt::Display, str::FromStr}; use sqlx::{ postgres::{PgArgumentBuffer, PgPoolOptions, PgRow, PgTypeInfo, PgValueRef}, Decode, Encode, Error::ColumnNotFound, FromRow, Pool, Postgres, Row, }; fn encode_by_ref( ...
ast_fragments
// file: hyperswitch/crates/analytics/src/sqlx.rs | crate: analytics use std::{fmt::Display, str::FromStr}; use sqlx::{ postgres::{PgArgumentBuffer, PgPoolOptions, PgRow, PgTypeInfo, PgValueRef}, Decode, Encode, Error::ColumnNotFound, FromRow, Pool, Postgres, Row, }; use storage_impl::config::Database; ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/sqlx.rs | crate: analytics use diesel_models::enums::{ AttemptStatus, AuthenticationType, Currency, FraudCheckStatus, IntentStatus, PaymentMethod, RefundStatus, }; use sqlx::{ postgres::{PgArgumentBuffer, PgPoolOptions, PgRow, PgTypeInfo, PgValueRef},...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/clickhouse.rs | crate: analytics use common_utils::errors::ParsingError; use error_stack::{report, Report, ResultExt}; use crate::{ api_event::{ events::ApiLogsResult, filters::ApiEventFilter, metrics::{latency::LatencyAvg, ApiEventMet...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/clickhouse.rs | crate: analytics use common_utils::errors::ParsingError; use error_stack::{report, Report, ResultExt}; use super::{ active_payments::metrics::ActivePaymentsMetricRow, auth_events::metrics::AuthEventMetricRow, frm::{filters::FrmFilterRo...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/clickhouse.rs | crate: analytics use actix_web::http::StatusCode; use error_stack::{report, Report, ResultExt}; use router_env::logger; use super::{ active_payments::metrics::ActivePaymentsMetricRow, auth_events::metrics::AuthEventMetricRow, frm::{fil...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/clickhouse.rs | crate: analytics Self::Dispute => Ok("dispute".to_string()), Self::DisputeSessionized => Ok("sessionizer_dispute".to_string()), Self::ActivePaymentsAnalytics => Ok("active_payments".to_string()), Sel...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/clickhouse.rs | crate: analytics use common_utils::errors::ParsingError; use super::{ active_payments::metrics::ActivePaymentsMetricRow, auth_events::metrics::AuthEventMetricRow, frm::{filters::FrmFilterRow, metrics::FrmMetricRow}, health_check::H...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/clickhouse.rs | crate: analytics use common_utils::errors::ParsingError; use error_stack::{report, Report, ResultExt}; use super::{ active_payments::metrics::ActivePaymentsMetricRow, auth_events::metrics::AuthEventMetricRow, frm::{filters::FrmFilterRo...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/clickhouse.rs | crate: analytics use common_utils::errors::ParsingError; use super::{ active_payments::metrics::ActivePaymentsMetricRow, auth_events::metrics::AuthEventMetricRow, frm::{filters::FrmFilterRow, metrics::FrmMetricRow}, health_check::H...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/clickhouse.rs | crate: analytics use common_utils::errors::ParsingError; use crate::{ api_event::{ events::ApiLogsResult, filters::ApiEventFilter, metrics::{latency::LatencyAvg, ApiEventMetricRow}, }, auth_events::filters::Auth...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/clickhouse.rs | crate: analytics use common_utils::errors::ParsingError; use crate::{ api_event::{ events::ApiLogsResult, filters::ApiEventFilter, metrics::{latency::LatencyAvg, ApiEventMetricRow}, }, auth_events::filters::Auth...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/clickhouse.rs | crate: analytics use common_utils::errors::ParsingError; use crate::{ api_event::{ events::ApiLogsResult, filters::ApiEventFilter, metrics::{latency::LatencyAvg, ApiEventMetricRow}, }, auth_events::filters::Auth...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/clickhouse.rs | crate: analytics use common_utils::errors::ParsingError; use super::{ active_payments::metrics::ActivePaymentsMetricRow, auth_events::metrics::AuthEventMetricRow, frm::{filters::FrmFilterRow, metrics::FrmMetricRow}, health_check::H...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/clickhouse.rs | crate: analytics use common_utils::errors::ParsingError; use super::{ active_payments::metrics::ActivePaymentsMetricRow, auth_events::metrics::AuthEventMetricRow, frm::{filters::FrmFilterRow, metrics::FrmMetricRow}, health_check::H...
ast_fragments
// file: hyperswitch/crates/analytics/src/clickhouse.rs | crate: analytics use common_utils::errors::ParsingError; use super::{ active_payments::metrics::ActivePaymentsMetricRow, auth_events::metrics::AuthEventMetricRow, frm::{filters::FrmFilterRow, metrics::FrmMetricRow}, health_check::HealthCheck, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/clickhouse.rs | crate: analytics use common_utils::errors::ParsingError; use crate::{ api_event::{ events::ApiLogsResult, filters::ApiEventFilter, metrics::{latency::LatencyAvg, ApiEventMetricRow}, }, auth_events::filters::Auth...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/clickhouse.rs | crate: analytics use common_utils::errors::ParsingError; use crate::{ api_event::{ events::ApiLogsResult, filters::ApiEventFilter, metrics::{latency::LatencyAvg, ApiEventMetricRow}, }, auth_events::filters::Auth...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/clickhouse.rs | crate: analytics use common_utils::errors::ParsingError; use crate::{ api_event::{ events::ApiLogsResult, filters::ApiEventFilter, metrics::{latency::LatencyAvg, ApiEventMetricRow}, }, auth_events::filters::Auth...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/clickhouse.rs | crate: analytics use common_utils::errors::ParsingError; use crate::{ api_event::{ events::ApiLogsResult, filters::ApiEventFilter, metrics::{latency::LatencyAvg, ApiEventMetricRow}, }, auth_events::filters::Auth...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/clickhouse.rs | crate: analytics use common_utils::errors::ParsingError; use super::{ active_payments::metrics::ActivePaymentsMetricRow, auth_events::metrics::AuthEventMetricRow, frm::{filters::FrmFilterRow, metrics::FrmMetricRow}, health_check::H...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/clickhouse.rs | crate: analytics use common_utils::errors::ParsingError; use super::{ active_payments::metrics::ActivePaymentsMetricRow, auth_events::metrics::AuthEventMetricRow, frm::{filters::FrmFilterRow, metrics::FrmMetricRow}, health_check::H...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/clickhouse.rs | crate: analytics use common_utils::errors::ParsingError; use super::{ active_payments::metrics::ActivePaymentsMetricRow, auth_events::metrics::AuthEventMetricRow, frm::{filters::FrmFilterRow, metrics::FrmMetricRow}, health_check::H...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/clickhouse.rs | crate: analytics use common_utils::errors::ParsingError; use super::{ active_payments::metrics::ActivePaymentsMetricRow, auth_events::metrics::AuthEventMetricRow, frm::{filters::FrmFilterRow, metrics::FrmMetricRow}, health_check::H...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/clickhouse.rs | crate: analytics use common_utils::errors::ParsingError; use super::{ active_payments::metrics::ActivePaymentsMetricRow, auth_events::metrics::AuthEventMetricRow, frm::{filters::FrmFilterRow, metrics::FrmMetricRow}, health_check::H...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/clickhouse.rs | crate: analytics use common_utils::errors::ParsingError; use super::{ active_payments::metrics::ActivePaymentsMetricRow, auth_events::metrics::AuthEventMetricRow, frm::{filters::FrmFilterRow, metrics::FrmMetricRow}, health_check::H...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/clickhouse.rs | crate: analytics use common_utils::errors::ParsingError; use super::{ active_payments::metrics::ActivePaymentsMetricRow, auth_events::metrics::AuthEventMetricRow, frm::{filters::FrmFilterRow, metrics::FrmMetricRow}, health_check::H...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/clickhouse.rs | crate: analytics use common_utils::errors::ParsingError; use super::{ active_payments::metrics::ActivePaymentsMetricRow, auth_events::metrics::AuthEventMetricRow, frm::{filters::FrmFilterRow, metrics::FrmMetricRow}, health_check::H...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/clickhouse.rs | crate: analytics use common_utils::errors::ParsingError; use super::{ active_payments::metrics::ActivePaymentsMetricRow, auth_events::metrics::AuthEventMetricRow, frm::{filters::FrmFilterRow, metrics::FrmMetricRow}, health_check::H...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/clickhouse.rs | crate: analytics use common_utils::errors::ParsingError; use super::{ active_payments::metrics::ActivePaymentsMetricRow, auth_events::metrics::AuthEventMetricRow, frm::{filters::FrmFilterRow, metrics::FrmMetricRow}, health_check::H...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/clickhouse.rs | crate: analytics use common_utils::errors::ParsingError; use crate::{ api_event::{ events::ApiLogsResult, filters::ApiEventFilter, metrics::{latency::LatencyAvg, ApiEventMetricRow}, }, auth_events::filters::Auth...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/clickhouse.rs | crate: analytics use common_utils::errors::ParsingError; use crate::{ api_event::{ events::ApiLogsResult, filters::ApiEventFilter, metrics::{latency::LatencyAvg, ApiEventMetricRow}, }, auth_events::filters::Auth...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/clickhouse.rs | crate: analytics use common_utils::errors::ParsingError; use crate::{ api_event::{ events::ApiLogsResult, filters::ApiEventFilter, metrics::{latency::LatencyAvg, ApiEventMetricRow}, }, auth_events::filters::Auth...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/clickhouse.rs | crate: analytics use common_utils::errors::ParsingError; use super::{ active_payments::metrics::ActivePaymentsMetricRow, auth_events::metrics::AuthEventMetricRow, frm::{filters::FrmFilterRow, metrics::FrmMetricRow}, health_check::H...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/clickhouse.rs | crate: analytics use super::{ active_payments::metrics::ActivePaymentsMetricRow, auth_events::metrics::AuthEventMetricRow, frm::{filters::FrmFilterRow, metrics::FrmMetricRow}, health_check::HealthCheck, payment_intents::{filter...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/clickhouse.rs | crate: analytics use common_utils::errors::ParsingError; use super::{ active_payments::metrics::ActivePaymentsMetricRow, auth_events::metrics::AuthEventMetricRow, frm::{filters::FrmFilterRow, metrics::FrmMetricRow}, health_check::H...
ast_fragments
// file: hyperswitch/crates/analytics/src/clickhouse.rs | crate: analytics use common_utils::errors::ParsingError; use super::{ active_payments::metrics::ActivePaymentsMetricRow, auth_events::metrics::AuthEventMetricRow, frm::{filters::FrmFilterRow, metrics::FrmMetricRow}, health_check::HealthCheck, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/lib.rs | crate: analytics pub use types::AnalyticsDomain; use std::{collections::HashSet, sync::Arc}; use clickhouse::ClickhouseClient; pub use clickhouse::ClickhouseConfig; use storage_impl::config::Database; use self::{ active_payments::metrics::{ActivePaym...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/lib.rs | crate: analytics dimensions, filters, granularity, // Since API events are ckh only use ckh here time_range, c...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/lib.rs | crate: analytics metric .load_metrics(merchant_id, publishable_key, time_range, pool) .await } Self::CombinedCkh(_sqlx_pool, ckh_pool) | Self::CombinedSqlx(_sqlx_pool, ckh_po...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/lib.rs | crate: analytics publishable_key, filters, granularity, // Since SDK events are ckh only use ckh here time_range, ...
ast_fragments
// file: hyperswitch/crates/analytics/src/lib.rs | crate: analytics }; sqlx_result } } }, &metrics::METRIC_FETCH_TIME, metric, self, ) ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/lib.rs | crate: analytics pub use types::AnalyticsDomain; use std::{collections::HashSet, sync::Arc}; use clickhouse::ClickhouseClient; pub use clickhouse::ClickhouseConfig; use storage_impl::config::Database; use self::{ active_payments::metrics::{ActivePaym...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/lib.rs | crate: analytics publishable_key, filters, granularity, // Since SDK events are ckh only use ckh here time_range, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/lib.rs | crate: analytics pub use types::AnalyticsDomain; pub use clickhouse::ClickhouseConfig; use router_env::{ logger, tracing::{self, instrument}, types::FlowMetric, }; use self::{ active_payments::metrics::{ActivePaymentsMetric, ActivePayment...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/lib.rs | crate: analytics use std::{collections::HashSet, sync::Arc}; use router_env::{ logger, tracing::{self, instrument}, types::FlowMetric, }; use self::{ active_payments::metrics::{ActivePaymentsMetric, ActivePaymentsMetricRow}, auth_even...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/lib.rs | crate: analytics }; sqlx_result } } }, &metrics::METRIC_FETCH_TIME, metric, self...
ast_fragments
// file: hyperswitch/crates/analytics/src/lib.rs | crate: analytics sqlx_result } } }, &metrics::METRIC_FETCH_TIME, &distribution.distribution_for, self, ) .await } pub async fn get_frm_...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/lib.rs | crate: analytics }; sqlx_result } } }, &metrics::METRIC_FETCH_TIME, metric, self...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/lib.rs | crate: analytics sqlx_result } } }, &metrics::METRIC_FETCH_TIME, metric, self, ) .await } pub async fn get_refund_metric...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/lib.rs | crate: analytics sqlx_result } } }, &metrics::METRIC_FETCH_TIME, &distribution.distribution_for, self, ) .await } pub as...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/lib.rs | crate: analytics sqlx_result } } }, &metrics::METRIC_FETCH_TIME, metric, self, ) .await } pub async fn get_payment_distr...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/lib.rs | crate: analytics Self::Clickhouse(_) => "Clickhouse", Self::Sqlx(_) => "Sqlx", Self::CombinedCkh(_, _) => "CombinedCkh", Self::CombinedSqlx(_, _) => "CombinedSqlx", }; write!(f, "{}", analy...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/query.rs | crate: analytics use api_models::{ analytics::{ self as analytics_api, api_event::ApiEventDimensions, auth_events::{AuthEventDimensions, AuthEventFlows}, disputes::DisputeDimensions, frm::{FrmDimensions, FrmT...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/query.rs | crate: analytics use api_models::{ analytics::{ self as analytics_api, api_event::ApiEventDimensions, auth_events::{AuthEventDimensions, AuthEventFlows}, disputes::DisputeDimensions, frm::{FrmDimensions, FrmT...
ast_fragments
// file: hyperswitch/crates/analytics/src/query.rs | crate: analytics use api_models::{ analytics::{ self as analytics_api, api_event::ApiEventDimensions, auth_events::{AuthEventDimensions, AuthEventFlows}, disputes::DisputeDimensions, frm::{FrmDimensions, FrmTransactionType}...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/query.rs | crate: analytics use api_models::{ analytics::{ self as analytics_api, api_event::ApiEventDimensions, auth_events::{AuthEventDimensions, AuthEventFlows}, disputes::DisputeDimensions, frm::{FrmDimensions, FrmT...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/query.rs | crate: analytics pub fn set_limit_by(&mut self, limit: u64, columns: &[impl ToSql<T>]) -> QueryResult<()> { let columns = columns .iter() .map(|col| col.to_sql(&self.table_engine)) .collect::<Result<Vec<S...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/query.rs | crate: analytics use api_models::{ analytics::{ self as analytics_api, api_event::ApiEventDimensions, auth_events::{AuthEventDimensions, AuthEventFlows}, disputes::DisputeDimensions, frm::{FrmDimensions, FrmT...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/query.rs | crate: analytics use api_models::{ analytics::{ self as analytics_api, api_event::ApiEventDimensions, auth_events::{AuthEventDimensions, AuthEventFlows}, disputes::DisputeDimensions, frm::{FrmDimensions, FrmT...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/query.rs | crate: analytics use api_models::{ analytics::{ self as analytics_api, api_event::ApiEventDimensions, auth_events::{AuthEventDimensions, AuthEventFlows}, disputes::DisputeDimensions, frm::{FrmDimensions, FrmT...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/query.rs | crate: analytics use api_models::{ analytics::{ self as analytics_api, api_event::ApiEventDimensions, auth_events::{AuthEventDimensions, AuthEventFlows}, disputes::DisputeDimensions, frm::{FrmDimensions, FrmT...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/query.rs | crate: analytics use api_models::{ analytics::{ self as analytics_api, api_event::ApiEventDimensions, auth_events::{AuthEventDimensions, AuthEventFlows}, disputes::DisputeDimensions, frm::{FrmDimensions, FrmT...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/query.rs | crate: analytics use api_models::{ analytics::{ self as analytics_api, api_event::ApiEventDimensions, auth_events::{AuthEventDimensions, AuthEventFlows}, disputes::DisputeDimensions, frm::{FrmDimensions, FrmT...
ast_fragments
// file: hyperswitch/crates/analytics/src/query.rs | crate: analytics use api_models::{ analytics::{ self as analytics_api, api_event::ApiEventDimensions, auth_events::{AuthEventDimensions, AuthEventFlows}, disputes::DisputeDimensions, frm::{FrmDimensions, FrmTransactionType}...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/query.rs | crate: analytics use api_models::{ analytics::{ self as analytics_api, api_event::ApiEventDimensions, auth_events::{AuthEventDimensions, AuthEventFlows}, disputes::DisputeDimensions, frm::{FrmDimensions, FrmT...
ast_fragments
// file: hyperswitch/crates/analytics/src/query.rs | crate: analytics use api_models::{ analytics::{ self as analytics_api, api_event::ApiEventDimensions, auth_events::{AuthEventDimensions, AuthEventFlows}, disputes::DisputeDimensions, frm::{FrmDimensions, FrmTransactionType}...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/query.rs | crate: analytics use api_models::{ analytics::{ self as analytics_api, api_event::ApiEventDimensions, auth_events::{AuthEventDimensions, AuthEventFlows}, disputes::DisputeDimensions, frm::{FrmDimensions, FrmT...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/query.rs | crate: analytics use api_models::{ analytics::{ self as analytics_api, api_event::ApiEventDimensions, auth_events::{AuthEventDimensions, AuthEventFlows}, disputes::DisputeDimensions, frm::{FrmDimensions, FrmT...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/query.rs | crate: analytics use api_models::{ analytics::{ self as analytics_api, api_event::ApiEventDimensions, auth_events::{AuthEventDimensions, AuthEventFlows}, disputes::DisputeDimensions, frm::{FrmDimensions, FrmT...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/query.rs | crate: analytics use api_models::{ analytics::{ self as analytics_api, api_event::ApiEventDimensions, auth_events::{AuthEventDimensions, AuthEventFlows}, disputes::DisputeDimensions, frm::{FrmDimensions, FrmT...
ast_fragments
// file: hyperswitch/crates/analytics/src/query.rs | crate: analytics use api_models::{ analytics::{ self as analytics_api, api_event::ApiEventDimensions, auth_events::{AuthEventDimensions, AuthEventFlows}, disputes::DisputeDimensions, frm::{FrmDimensions, FrmTransactionType}...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/query.rs | crate: analytics use api_models::{ analytics::{ self as analytics_api, api_event::ApiEventDimensions, auth_events::{AuthEventDimensions, AuthEventFlows}, disputes::DisputeDimensions, frm::{FrmDimensions, FrmT...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/query.rs | crate: analytics use api_models::{ analytics::{ self as analytics_api, api_event::ApiEventDimensions, auth_events::{AuthEventDimensions, AuthEventFlows}, disputes::DisputeDimensions, frm::{FrmDimensions, FrmT...
ast_fragments
// file: hyperswitch/crates/analytics/src/query.rs | crate: analytics use api_models::{ analytics::{ self as analytics_api, api_event::ApiEventDimensions, auth_events::{AuthEventDimensions, AuthEventFlows}, disputes::DisputeDimensions, frm::{FrmDimensions, FrmTransactionType}...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/query.rs | crate: analytics use api_models::{ analytics::{ self as analytics_api, api_event::ApiEventDimensions, auth_events::{AuthEventDimensions, AuthEventFlows}, disputes::DisputeDimensions, frm::{FrmDimensions, FrmT...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/query.rs | crate: analytics use api_models::{ analytics::{ self as analytics_api, api_event::ApiEventDimensions, auth_events::{AuthEventDimensions, AuthEventFlows}, disputes::DisputeDimensions, frm::{FrmDimensions, FrmT...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/query.rs | crate: analytics use api_models::{ analytics::{ self as analytics_api, api_event::ApiEventDimensions, auth_events::{AuthEventDimensions, AuthEventFlows}, disputes::DisputeDimensions, frm::{FrmDimensions, FrmT...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/query.rs | crate: analytics use api_models::{ analytics::{ self as analytics_api, api_event::ApiEventDimensions, auth_events::{AuthEventDimensions, AuthEventFlows}, disputes::DisputeDimensions, frm::{FrmDimensions, FrmT...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/query.rs | crate: analytics use super::types::{AnalyticsCollection, AnalyticsDataSource, LoadRow, TableEngine}; pub type QueryResult<T> = error_stack::Result<T, QueryBuildingError>; pub fn new(table: AnalyticsCollection) -> Self { {<|fim_suffix|> <|fim_middle|> }...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/query.rs | crate: analytics pub type QueryResult<T> = error_stack::Result<T, QueryBuildingError>; pub fn filter_type_to_sql(l: &str, op: FilterTypes, r: &str) -> String { <|fim_suffix|> <|fim_middle|> }
ast_fragments
// file: hyperswitch/crates/analytics/src/query.rs | crate: analytics use api_models::{ analytics::{ self as analytics_api, api_event::ApiEventDimensions, auth_events::{AuthEventDimensions, AuthEventFlows}, disputes::DisputeDimensions, frm::{FrmDimensions, FrmTransactionType}...
ast_fragments
// file: hyperswitch/crates/analytics/src/query.rs | crate: analytics use api_models::{ analytics::{ self as analytics_api, api_event::ApiEventDimensions, auth_events::{AuthEventDimensions, AuthEventFlows}, disputes::DisputeDimensions, frm::{FrmDimensions, FrmTransactionType}...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/query.rs | crate: analytics use api_models::{ analytics::{ self as analytics_api, api_event::ApiEventDimensions, auth_events::{AuthEventDimensions, AuthEventFlows}, disputes::DisputeDimensions, frm::{FrmDimensions, FrmT...
ast_fragments
// file: hyperswitch/crates/analytics/src/query.rs | crate: analytics use api_models::{ analytics::{ self as analytics_api, api_event::ApiEventDimensions, auth_events::{AuthEventDimensions, AuthEventFlows}, disputes::DisputeDimensions, frm::{FrmDimensions, FrmTransactionType}...
ast_fragments
// file: hyperswitch/crates/analytics/src/query.rs | crate: analytics use api_models::{ analytics::{ self as analytics_api, api_event::ApiEventDimensions, auth_events::{AuthEventDimensions, AuthEventFlows}, disputes::DisputeDimensions, frm::{FrmDimensions, FrmTransactionType}...
ast_fragments
// file: hyperswitch/crates/analytics/src/query.rs | crate: analytics use api_models::{ analytics::{ self as analytics_api, api_event::ApiEventDimensions, auth_events::{AuthEventDimensions, AuthEventFlows}, disputes::DisputeDimensions, frm::{FrmDimensions, FrmTransactionType}...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/query.rs | crate: analytics use api_models::{ analytics::{ self as analytics_api, api_event::ApiEventDimensions, auth_events::{AuthEventDimensions, AuthEventFlows}, disputes::DisputeDimensions, frm::{FrmDimensions, FrmT...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/opensearch.rs | crate: analytics use api_models::{ analytics::search::SearchIndex, errors::types::{ApiError, ApiErrorResponse}, }; use aws_config::{self, meta::region::RegionProviderChain, Region}; use serde_json::{json, Map, Value}; use super::{health_ch...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/opensearch.rs | crate: analytics use aws_config::{self, meta::region::RegionProviderChain, Region}; use serde_json::{json, Map, Value}; use crate::{enums::AuthInfo, query::QueryBuildingError}; pub fn build_auth_array(&self) -> Vec<Value> { <|fim_suffix|> <|fim_mi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/opensearch.rs | crate: analytics use api_models::{ analytics::search::SearchIndex, errors::types::{ApiError, ApiErrorResponse}, }; use aws_config::{self, meta::region::RegionProviderChain, Region}; use serde_json::{json, Map, Value}; use super::{health_ch...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/opensearch.rs | crate: analytics use api_models::{ analytics::search::SearchIndex, errors::types::{ApiError, ApiErrorResponse}, }; use aws_config::{self, meta::region::RegionProviderChain, Region}; use serde_json::{json, Map, Value}; use super::{health_ch...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/opensearch.rs | crate: analytics use api_models::{ analytics::search::SearchIndex, errors::types::{ApiError, ApiErrorResponse}, }; use aws_config::{self, meta::region::RegionProviderChain, Region}; use common_utils::{ errors::{CustomResult, ErrorSwitc...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/opensearch.rs | crate: analytics use aws_config::{self, meta::region::RegionProviderChain, Region}; use common_utils::{ errors::{CustomResult, ErrorSwitch}, types::TimeRange, }; use opensearch::{ auth::Credentials, cert::CertificateValidation, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/analytics/src/opensearch.rs | crate: analytics use api_models::{ analytics::search::SearchIndex, errors::types::{ApiError, ApiErrorResponse}, }; use aws_config::{self, meta::region::RegionProviderChain, Region}; pub fn get_amount_field(&self, index: SearchIndex) -> &st...
ast_fragments