Performance statistics: add JSON file storage support.
[e-mobility-charging-stations-simulator.git] / src / types / ConfigurationData.ts
index 91437807a629363c6df60260c4397fe1d4916726..1a2dd165113188d52690eafb4ed5d4f64da553d5 100644 (file)
@@ -1,3 +1,4 @@
+import { StorageType } from './Storage';
 import type { WorkerChoiceStrategy } from 'poolifier';
 import { WorkerProcessType } from './Worker';
 
@@ -6,10 +7,16 @@ export interface StationTemplateURL {
   numberOfStations: number;
 }
 
+export interface StorageConfiguration {
+  enabled?: boolean;
+  type?: StorageType;
+  URI?: string;
+}
+
 export default interface ConfigurationData {
   supervisionURLs?: string[];
   stationTemplateURLs: StationTemplateURL[];
-  statisticsDisplayInterval?: number;
+  performanceStorage?: StorageConfiguration;
   autoReconnectMaxRetries?: number;
   distributeStationsToTenantsEqually?: boolean;
   workerProcess?: WorkerProcessType;
@@ -18,6 +25,7 @@ export default interface ConfigurationData {
   workerPoolMaxSize?: number;
   workerPoolStrategy?: WorkerChoiceStrategy;
   chargingStationsPerWorker?: number;
+  logStatisticsInterval?: number;
   logFormat?: string;
   logLevel?: string;
   logRotate?: boolean;