X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FConfigurationData.ts;h=56ee0354510cca07327b6a6ce48973f1a8ab9dcd;hb=2dcfe98ec940932372855643f996b87c27f4b7fa;hp=10f2565a81f52a5b874c3331771cdd110c83a7f9;hpb=1f5df42ad17d09d3a1f53f6618eba325a403d7ad;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ConfigurationData.ts b/src/types/ConfigurationData.ts index 10f2565a..56ee0354 100644 --- a/src/types/ConfigurationData.ts +++ b/src/types/ConfigurationData.ts @@ -2,6 +2,13 @@ import { ServerOptions } from 'ws'; import { StorageType } from './Storage'; import type { WorkerChoiceStrategy } from 'poolifier'; import { WorkerProcessType } from './Worker'; +import { level } from 'winston'; + +export enum SupervisionUrlDistribution { + ROUND_ROBIN = 'round-robin', + RANDOM = 'random', + SEQUENTIAL = 'sequential', +} export interface StationTemplateUrl { file: string; @@ -20,12 +27,12 @@ export interface StorageConfiguration { } export default interface ConfigurationData { - supervisionUrls?: string[]; + supervisionUrls?: string | string[]; + supervisionUrlDistribution?: SupervisionUrlDistribution; stationTemplateUrls: StationTemplateUrl[]; uiWebSocketServer?: UIWebSocketServerConfiguration; performanceStorage?: StorageConfiguration; autoReconnectMaxRetries?: number; - distributeStationsToTenantsEqually?: boolean; workerProcess?: WorkerProcessType; workerStartDelay?: number; workerPoolMinSize?: number; @@ -34,7 +41,7 @@ export default interface ConfigurationData { chargingStationsPerWorker?: number; logStatisticsInterval?: number; logFormat?: string; - logLevel?: string; + logLevel?: level; logRotate?: boolean; logMaxFiles?: number; logFile?: string;