Skip to content

Commit

Permalink
revert: fix(analytics): feat(analytics): analytics APIs (#2777)
Browse files Browse the repository at this point in the history
  • Loading branch information
lsampras authored Nov 3, 2023
1 parent 1502697 commit 169d33b
Show file tree
Hide file tree
Showing 47 changed files with 13 additions and 4,507 deletions.
281 changes: 11 additions & 270 deletions Cargo.lock

Large diffs are not rendered by default.

14 changes: 1 addition & 13 deletions config/config.example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -433,22 +433,10 @@ apple_pay_ppc_key = "APPLE_PAY_PAYMENT_PROCESSING_CERTIFICATE_KEY" #Private
apple_pay_merchant_cert = "APPLE_PAY_MERCHNAT_CERTIFICATE" #Merchant Certificate provided by Apple Pay (https://developer.apple.com/) Certificates, Identifiers & Profiles > Apple Pay Merchant Identity Certificate
apple_pay_merchant_cert_key = "APPLE_PAY_MERCHNAT_CERTIFICATE_KEY" #Private key generate by RSA:2048 algorithm


[payment_link]
sdk_url = "http://localhost:9090/dist/HyperLoader.js"

# Analytics configuration.
[analytics]
source = "sqlx" # The Analytics source/strategy to be used

[analytics.sqlx]
username = "db_user" # Analytics DB Username
password = "db_pass" # Analytics DB Password
host = "localhost" # Analytics DB Host
port = 5432 # Analytics DB Port
dbname = "hyperswitch_db" # Name of Database
pool_size = 5 # Number of connections to keep open
connection_timeout = 10 # Timeout for database connection in seconds

# Config for KV setup
[kv_config]
# TTL for KV in seconds
Expand Down
11 changes: 0 additions & 11 deletions config/docker_compose.toml
Original file line number Diff line number Diff line change
Expand Up @@ -317,16 +317,5 @@ supported_connectors = "braintree"
redis_lock_expiry_seconds = 180 # 3 * 60 seconds
delay_between_retries_in_milliseconds = 500

[analytics]
source = "sqlx"

[analytics.sqlx]
username = "db_user"
password = "db_pass"
host = "pg"
port = 5432
dbname = "hyperswitch_db"
pool_size = 5

[kv_config]
ttl = 900 # 15 * 60 seconds
137 changes: 0 additions & 137 deletions crates/api_models/src/analytics.rs

This file was deleted.

176 changes: 0 additions & 176 deletions crates/api_models/src/analytics/payments.rs

This file was deleted.

Loading

0 comments on commit 169d33b

Please sign in to comment.