Merge branch 'master' of https://github.wdf.sap.corp/E-Mobility/ev-simulator
[e-mobility-charging-stations-simulator.git] / src / types / ConfigurationData.ts
1 import type { WorkerChoiceStrategy } from 'poolifier';
2 import { WorkerProcessType } from './Worker';
3
4 export interface StationTemplateURL {
5 file: string;
6 numberOfStations: number;
7 }
8
9 export default interface ConfigurationData {
10 supervisionURLs?: string[];
11 stationTemplateURLs: StationTemplateURL[];
12 statisticsDisplayInterval?: number;
13 connectionTimeout?: number;
14 autoReconnectMaxRetries?: number;
15 distributeStationsToTenantsEqually?: boolean;
16 workerProcess?: WorkerProcessType;
17 workerStartDelay?: number;
18 workerPoolMinSize?: number;
19 workerPoolMaxSize?: number;
20 workerPoolStrategy?: WorkerChoiceStrategy;
21 chargingStationsPerWorker?: number;
22 logFormat?: string;
23 logLevel?: string;
24 logRotate?: boolean;
25 logMaxFiles?: number;
26 logFile?: string;
27 logErrorFile?: string;
28 logConsole?: boolean;
29 }