Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


DataRepository


DataRepository allows MoSKito-Control to obtain and process data from different sources, including, but not limited to, MoSKito Agents. 

DataRepository consists of following parts

  • DataPreprocessors
  • DataRetrievers
  • DataProcessors
  • Preprocessing instructions
  • Processing Instructions


Table of Contents


DataProcessors

Data processors are used to process data collected by the DataRetrievers. 

DataProcessors are configured in moskitocontrol.json in the section DataRepositoryConfig | Processors.


Following DataProcessors are available builtin (you can add you own data processors if you need to). Please note that the names can be changed via configs.

NameClazz
const
org.moskito.control.data.processors.ConstantProcessor
sum
org.moskito.control.data.processors.SumProcessor
div
org.moskito.control.data.processors.DivProcessor
currency
org.moskito.control.data.processors.CurrencyProcessor
addstring
org.moskito.control.data.processors.AddStringProcessor
int
org.moskito.control.data.processors.IntProcessor
deviationPercent
org.moskito.control.data.processors.CalculatePercentageDeviationProcessor
ifgreaterzero
org.moskito.control.data.processors.IfGreaterZeroProcessor
iflesszero
org.moskito.control.data.processors.IfLessZeroProcessor
ifzero
org.moskito.control.data.processors.IfEqualsZeroProcessor









Processing instructions

Processing instructions tell data repository how to process data and use data processors. Instructions usually have the form:

Code Block
processorName targetVariableName parameters

where

  • processorName is the name of the processor
  • targetVariableName is where to store the results 
  • parameters are custom parameters that depend on the processor

The processing instructions are stored as json array of strings in moskitocontrol.json