Adding KPIs

This page provides a description of how we can add a KPI. The techniques employed are generic examples that can be extended, adapted and repeated for any use case that we need. In all cases, we make minimal changes to the MR application.

Cube Qualifier
Var-ES Cube kpiVaRESCube
VaR-ES Summary Cube kpiVaRESSummaryCube
Sensitivity Cube kpiSensitivityCube
Sensitivity Summary Cube kpiSensitivitySummaryCube
PLCube kpiPLCube
PL Summary Cube kpiPLSummaryCube
Combined Cube kpiMRCombinedCube

A KPI can be defined as a bean with the following format:

        @Bean
        @Qualifier("kpi[...theCubeName...]")
        public IKpiDescription myKpiTest() {
        return StartBuilding.kpi()
            .withName(...)
            ...
            .build();
        }

Pre-defined KPIs for the VaR-ES cube are located in the class KpiProviderConfig within /mr-var-config/src/main/java/com/activeviam/mr/var/config/

Suggested Further Reading