| 1 | import { StorageType } from './Storage'; |
| 2 | import type { WorkerChoiceStrategy } from 'poolifier'; |
| 3 | import { WorkerProcessType } from './Worker'; |
| 4 | |
| 5 | export interface StationTemplateURL { |
| 6 | file: string; |
| 7 | numberOfStations: number; |
| 8 | } |
| 9 | |
| 10 | export interface StorageConfiguration { |
| 11 | enabled?: boolean; |
| 12 | type?: StorageType; |
| 13 | URI?: string; |
| 14 | } |
| 15 | |
| 16 | export default interface ConfigurationData { |
| 17 | supervisionURLs?: string[]; |
| 18 | stationTemplateURLs: StationTemplateURL[]; |
| 19 | performanceStorage?: StorageConfiguration; |
| 20 | autoReconnectMaxRetries?: number; |
| 21 | distributeStationsToTenantsEqually?: boolean; |
| 22 | workerProcess?: WorkerProcessType; |
| 23 | workerStartDelay?: number; |
| 24 | workerPoolMinSize?: number; |
| 25 | workerPoolMaxSize?: number; |
| 26 | workerPoolStrategy?: WorkerChoiceStrategy; |
| 27 | chargingStationsPerWorker?: number; |
| 28 | logStatisticsInterval?: number; |
| 29 | logFormat?: string; |
| 30 | logLevel?: string; |
| 31 | logRotate?: boolean; |
| 32 | logMaxFiles?: number; |
| 33 | logFile?: string; |
| 34 | logErrorFile?: string; |
| 35 | logConsole?: boolean; |
| 36 | } |