Skip to content

HowTo: Adding a new Data Collection Service

Jérôme Oesch edited this page Feb 26, 2018 · 5 revisions

To add a new data collection service the following steps have to be undertaken:

  1. Create a new class implementing IDataCollectior, similarly as it has been done in class InsightsRestApiDataCollector. The data that is retrieved has to be stored into instances of type CollectedDataEntity. Important: CollectedDataEntity.Dependency.Type has to equal a string describing the kind of message that arrived --> it will be used later to sort the message into its store.
  2. The Data Collection Service has to be added to the DataCollectionServiceProvider class. In case the retrieved data matches an already implemented data model class (e.g. ConcreteMethodTelemetry), you are done here. If a new data model is needed, continue reading here: https://github.com/sealuzh/visual-studio-perfviz/wiki/HowTo:-Adding-a-new-Store-and-a-new-Data-Model