Tekelija.Statklic

Module handling sending stats data to Statklic service

Configuration

Module config

{
  "Statklic": {
    "Database": null,
    "ConnectionString": null,
    "ECallSender": null,
    "SmsSender": null
  }
}
Name Type Default Description
Database string sqlite Database to use (sqlite, mysql, mssql)
ConnectionString string ‘datasource=./tekelija-statklic.db;cache=shared;’ Database connection string
ECallSender SenderConfig {Active: false} ECall sender config
SmsSender SenderConfig {Active: false} ECall sender config

Sender config

{
  "Active": null,
  "Minutes": null,
  "Address": null,
  "Username": null,
  "ApiKey": null,
  "BatchSize": null,
  "MaxSyncRetries": null,
  "AllegroRegionId": null
}
Name Type Default Description
Active bool false Is sender active
Minutes int 5 Send data every x minutes
Address string null Url to send data to
Username string null Authorization username
ApiKey string null Authorization api key
BatchSize int 10 Batch size of data to send in one pass
MaxSyncRetries int 3 Number of times to retry sending
AllegroRegionId string 10 Allegro region id, used for translation regionid to some other region id

Message bus config

Configure access to rabbitmq message service bus.

{
  "MessageBus": {
    "Url": "rabbitmq://localhost",
    "Username": null,
    "Password": null,
    "Endpoint": "<endpoint-name>",
    "MessageRepositoryUri": null
  }
}

Parameters:

Name Type Default Description
Url string null RabbitMQ url (rabbitmq://…)
Username string null RabbitMQ username
Password string null RabbitMQ user password
Endpoint string null RabbitMQ endpoint
MessageRepositoryUri string host name Origin of the call, may have some sense for global call data collection setup

Authorization config

OpenId authentication configuration.

{
  "AuthServer": {
    "Issuer": "https://authenticatomatic.urszr.si:22000",
    "ClientId": null,
    "ClientSecret": null,
    "Audience": null
  }
}
Name Type Default Description
Issuer string null OAuth server url
ClientId string null Authorization app id
ClientSecret string null Authorization app secret
Audience string[] null Array of audiences (scope resources) to be used in token validation

Minimal required configuration is Issuer