X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FConfigurationData.ts;h=1a2dd165113188d52690eafb4ed5d4f64da553d5;hb=107efcc6655b5a4409fc5db3da90869d6881a195;hp=6d67a06e741207fb670fa712e716e9aa662a33d7;hpb=9efbac5b97d10f6fd0d8a64f1130c40bdebc7c44;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ConfigurationData.ts b/src/types/ConfigurationData.ts index 6d67a06e..1a2dd165 100644 --- a/src/types/ConfigurationData.ts +++ b/src/types/ConfigurationData.ts @@ -1,3 +1,4 @@ +import { StorageType } from './Storage'; import type { WorkerChoiceStrategy } from 'poolifier'; import { WorkerProcessType } from './Worker'; @@ -6,11 +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; - connectionTimeout?: number; + performanceStorage?: StorageConfiguration; autoReconnectMaxRetries?: number; distributeStationsToTenantsEqually?: boolean; workerProcess?: WorkerProcessType; @@ -19,6 +25,7 @@ export default interface ConfigurationData { workerPoolMaxSize?: number; workerPoolStrategy?: WorkerChoiceStrategy; chargingStationsPerWorker?: number; + logStatisticsInterval?: number; logFormat?: string; logLevel?: string; logRotate?: boolean;