-
Sub-task
-
Resolution: Fixed
-
L3 - Default
-
None
-
None
-
None
-
Not defined
Description
Currently the KpiService, calculates the values of every individual kpi whenever a the endpoint is being invoke. Since now in ES we have a new field called "lastKpiEvaluationResult" in the ProcessOverviewIndex we can simply do a look up there and fetch the last kpi value.
Edge Cases
We need to find a solution for what happens whenever we create a new report as set it as a kpi, which doesnt exist in ES yet, as this will cause the endpoint not to return it until the next interval
AT:
- The KpiService fetched the values from ES for the report KPIs
- The KpiService inserts a kpi value to ES in case it doesnt exist there