Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.eslintcache
temp/
*.tar.gz
+performance/
performanceRecords.json
performanceRecords.json.lock
*.db
switch (storageType) {
case StorageType.JSON_FILE:
return Configuration.buildPerformanceUriFilePath(
- Constants.DEFAULT_PERFORMANCE_RECORDS_FILENAME
+ `${Constants.DEFAULT_PERFORMANCE_DIRECTORY}/${Constants.DEFAULT_PERFORMANCE_RECORDS_FILENAME}`
);
case StorageType.SQLITE:
return Configuration.buildPerformanceUriFilePath(
- `${Constants.DEFAULT_PERFORMANCE_RECORDS_DB_NAME}.db`
+ `${Constants.DEFAULT_PERFORMANCE_DIRECTORY}/${Constants.DEFAULT_PERFORMANCE_RECORDS_DB_NAME}.db`
);
default:
throw new Error(`Performance storage URI is mandatory with storage type '${storageType}'`);
static readonly DEFAULT_FLUCTUATION_PERCENT = 5;
+ static readonly DEFAULT_PERFORMANCE_DIRECTORY = 'performance';
static readonly DEFAULT_PERFORMANCE_RECORDS_FILENAME = 'performanceRecords.json';
static readonly DEFAULT_PERFORMANCE_RECORDS_DB_NAME = 'e-mobility-charging-stations-simulator';
static readonly PERFORMANCE_RECORDS_TABLE = 'performance_records';