Skip to content

Latest commit

 

History

History
55 lines (31 loc) · 3.45 KB

InteractionsEvaluator-Tool.md

File metadata and controls

55 lines (31 loc) · 3.45 KB

Interactions Evaluator

With the Interactions Evaluator tool we want to help the user decide how often the trigger that starts the export should run. The essential data that we need for this decision are firstly an average number of interactions per day that are entered in Sitecore, and secondly how many interactions per minute can xDB Analytics Extractor export from Sitecore with XConnect client. Furthermore, by using those two metrics we can identify if xDB Analytics Extractor can export all data that are produced per day.

Setup

There are two parts in the configuration of xDB Analytics Extractor.InteractionsEvaluator tool, the first is the [appsettings.json](../src/xDB Analytics Extractor.InteractionsEvaluator/appsettings.json) and the second is the [Constants.cs](../src/xDB Analytics Extractor.InteractionsEvaluator/Constants.cs). Information about the required configuration can be found in the Installation section of the Readme and in Metrics section below respectively.

Metrics

GetNumberOfBatchesProcessedAsync

This method finds the number of batches of 200 interactions that we process in the duration of Constants.BATCH_PROCESSING_SECONDS for each run and we calculate the minimum, maximum and average number of batches processed and we show them to the user.

GetNumberOfInteractionsForDaysSpecified

  • Constants.NUMBER_OF_DAYS : This is used to determine until how many days ago we will retrieve interactions. We ask from the xconnect client to retrieve interactions that their EndDateTime is greater or equals to the current date minus the Constants.NUMBER_OF_DAYS. Then we divide the interactions with Constants.NUMBER_OF_DAYS to get average number of interactions per day. We divide average interactions per day with 86400 which are the seconds in a day to find interactions per seconds