Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open Network Telemetry SDK Integration #209

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 45 additions & 35 deletions config/samples/bap-client.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# Mandatory
server:
port: BAP_CLIENT_PORT
port: 5001

# Mandatory.
cache:
host: "REDIS_URL"
host: "0.0.0.0"
port: 6379
ttl: "PT10M"
# Optional. Default is 0.
db: 1
db: 0

# Optional.
responseCache:
mongoURL: "mongodb://MONGO_USERNAME:MONGO_PASSWORD@0.0.0.0:27017/MONGO_DB_NAME?authSource=admin"
mongoURL: "mongodb://tvast:password@0.0.0.0:27017/ps?authSource=admin"
ttl: "PT10M"

# Mandatory.
Expand All @@ -21,8 +21,8 @@ responseCache:
# 2. webhook
# 3. pubSub
client:
synchronous:
mongoURL: "mongodb://MONGO_USERNAME:MONGO_PASSWORD@MONOG_URL:27017/MONGO_DB_NAME?authSource=admin"
synchronous:
mongoURL: "mongodb://tvast:[email protected]:27017/ps?authSource=admin"

#webhook:
# url: "https://beckn.free.beeceptor.com/clientURL"
Expand All @@ -43,63 +43,63 @@ app:
mode: client
inboxQueue: "inbox"
outboxQueue: "outbox"
amqpURL: "amqp://RABBITMQ_USERNAME:RABBITMQ_PASSWORD@RABBITMQ_URL:5672"
amqpURL: "amqp://tvast:[email protected]:5672"

# Mandatory.
actions:
requests:
search:
ttl : "PT15S"
init:
ttl : "PT10S"
ttl : "PT15S"
select:
ttl : "PT10S"
ttl : "PT15S"
confirm:
ttl : "PT10S"
ttl : "PT15S"
status:
ttl : "PT10S"
ttl : "PT15S"
track:
ttl : "PT10S"
ttl : "PT15S"
cancel:
ttl : "PT10S"
ttl : "PT15S"
update:
ttl : "PT10S"
ttl : "PT15S"
rating:
ttl : "PT10S"
ttl : "PT15S"
support:
ttl : "PT10S"
ttl : "PT15S"
get_cancellation_reasons:
ttl : "PT10S"
ttl : "PT15S"
get_rating_categories:
ttl : "PT10S"
ttl : "PT15S"
cancellation:
ttl : "PT10S"
ttl : "PT15S"

responses:
on_search:
ttl: "PT15S"
on_init:
ttl: "PT10S"
ttl: "PT15S"
on_select:
ttl: "PT10S"
ttl: "PT15S"
on_confirm:
ttl: "PT10S"
ttl: "PT15S"
on_status:
ttl: "PT10S"
ttl: "PT15S"
on_track:
ttl: "PT10S"
ttl: "PT15S"
on_cancel:
ttl: "PT10S"
ttl: "PT15S"
on_update:
ttl: "PT10S"
ttl: "PT15S"
on_rating:
ttl: "PT10S"
ttl: "PT15S"
on_support:
ttl: "PT10S"
ttl: "PT15S"
cancellation_reasons:
ttl: "PT10S"
ttl: "PT15S"
rating_categories:
ttl: "PT10S"
ttl: "PT15S"

# Mandatory.
privateKey: "PRIVATE_KEY"
Expand All @@ -115,7 +115,7 @@ app:
uniqueKey: "BAP_SUBSCRIBER_ID_KEY"

# Mandatory.
city: "std:080"
city: "*"
country: "IND"

# Mandatory.
Expand All @@ -124,10 +124,20 @@ app:
# Mandatory.
httpTimeout: "PT3S"
httpRetryCount: 2

telemetry:
enabled: false
url: ""
network:
url: ""
raw:
url: ""
batchSize: 100
# In minutes
syncInterval: 30
redis_db: 3
syncInterval: 1
# Either can be LOCAL or REDIS
storageType: "LOCAL"
backupFilePath: "backups"
redis:
db: 4
service:
name: "bap_client_service"
version: "1.0.0"
84 changes: 47 additions & 37 deletions config/samples/bap-network.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# Mandatory
server:
port: BAP_NETWORK_PORT
port: 5002

# Mandatory.
cache:
host: "REDIS_URL"
host: "0.0.0.0"
port: 6379
ttl: "PT10M"
# Optional. Default is 0.
db: 1
db: 0

# Optional.
responseCache:
mongoURL: "mongodb://MONGO_USERNAME:MONGO_PASSWORD@0.0.0.0:27017/MONGO_DB_NAME?authSource=admin"
mongoURL: "mongodb://tvast:password@0.0.0.0:27017/ps?authSource=admin"
ttl: "PT10M"

# Mandatory.
Expand All @@ -21,13 +21,13 @@ responseCache:
# 2. webhook
# 3. pubSub
client:
synchronous:
mongoURL: "mongodb://MONGO_USERNAME:MONGO_PASSWORD@MONOG_URL:27017/MONGO_DB_NAME?authSource=admin"
synchronous:
mongoURL: "mongodb://tvast:[email protected]:27017/ps?authSource=admin"

#webhook:
# url: "https://beckn.free.beeceptor.com/clientURL"
#messageQueue:

#messageQueue:
# amqpURL: "amqp://guest:guest@localhost:5672"
# incomingQueue: "protocol-server-incoming"
# outgoingQueue: "protocol-server-outgoing"
Expand All @@ -43,63 +43,63 @@ app:
mode: network
inboxQueue: "inbox"
outboxQueue: "outbox"
amqpURL: "amqp://RABBITMQ_USERNAME:RABBITMQ_PASSWORD@RABBITMQ_URL:5672"
amqpURL: "amqp://tvast:[email protected]:5672"

# Mandatory.
actions:
requests:
search:
ttl : "PT15S"
init:
ttl : "PT10S"
ttl : "PT15S"
select:
ttl : "PT10S"
ttl : "PT15S"
confirm:
ttl : "PT10S"
ttl : "PT15S"
status:
ttl : "PT10S"
ttl : "PT15S"
track:
ttl : "PT10S"
ttl : "PT15S"
cancel:
ttl : "PT10S"
ttl : "PT15S"
update:
ttl : "PT10S"
ttl : "PT15S"
rating:
ttl : "PT10S"
ttl : "PT15S"
support:
ttl : "PT10S"
ttl : "PT15S"
get_cancellation_reasons:
ttl : "PT10S"
ttl : "PT15S"
get_rating_categories:
ttl : "PT10S"
ttl : "PT15S"
cancellation:
ttl : "PT10S"
ttl : "PT15S"

responses:
on_search:
ttl: "PT15S"
on_init:
ttl: "PT10S"
ttl: "PT15S"
on_select:
ttl: "PT10S"
ttl: "PT15S"
on_confirm:
ttl: "PT10S"
ttl: "PT15S"
on_status:
ttl: "PT10S"
ttl: "PT15S"
on_track:
ttl: "PT10S"
ttl: "PT15S"
on_cancel:
ttl: "PT10S"
ttl: "PT15S"
on_update:
ttl: "PT10S"
ttl: "PT15S"
on_rating:
ttl: "PT10S"
ttl: "PT15S"
on_support:
ttl: "PT10S"
ttl: "PT15S"
cancellation_reasons:
ttl: "PT10S"
ttl: "PT15S"
rating_categories:
ttl: "PT10S"
ttl: "PT15S"

# Mandatory.
privateKey: "PRIVATE_KEY"
Expand All @@ -115,7 +115,7 @@ app:
uniqueKey: "BAP_SUBSCRIBER_ID_KEY"

# Mandatory.
city: "std:080"
city: "*"
country: "IND"

# Mandatory.
Expand All @@ -124,10 +124,20 @@ app:
# Mandatory.
httpTimeout: "PT3S"
httpRetryCount: 2

telemetry:
enabled: false
url: ""
network:
url: ""
raw:
url: ""
batchSize: 100
# In minutes
syncInterval: 30
redis_db: 3
syncInterval: 1
# Either can be LOCAL or REDIS
storageType: "LOCAL"
backupFilePath: "backups"
redis:
db: 4
service:
name: "bap_network_service"
version: "1.0.0"
Loading