feat: add performance statistics to UI protocol
[e-mobility-charging-stations-simulator.git] / src / charging-station / Bootstrap.ts
index f238d9515e1ba989d09176963323787b193c4cd7..2c1b0f43b3443f8f239888b7f4e507ad6eefd584 100644 (file)
@@ -120,6 +120,10 @@ export class Bootstrap extends EventEmitter {
     return this.chargingStationsByTemplate.get(templateName)?.lastIndex ?? 0
   }
 
+  public getPerformanceStatistics (): IterableIterator<Statistics> | undefined {
+    return this.storage?.getPerformanceStatistics()
+  }
+
   private get numberOfAddedChargingStations (): number {
     return [...this.chargingStationsByTemplate.values()].reduce(
       (accumulator, value) => accumulator + value.added,