X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FStatistics.ts;h=5f22cdafd7347c774a9b3472fdaa1b7bb724089f;hb=0ac97927984473fcb11a177f013b0e112638e050;hp=72f96696905165847155a305ddb8b4d5e3f8ab5b;hpb=8a36b1eb6df21e7ff434b36333d26739edf0e146;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/Statistics.ts b/src/types/Statistics.ts index 72f96696..5f22cdaf 100644 --- a/src/types/Statistics.ts +++ b/src/types/Statistics.ts @@ -1,12 +1,13 @@ -import type { CircularArray } from '../utils/CircularArray'; -import type { WorkerData } from './Worker'; +import type { IncomingRequestCommand, RequestCommand } from './internal'; +import type { CircularArray } from '../utils'; +import type { WorkerData } from '../worker'; export type TimeSeries = { timestamp: number; value: number; }; -export type StatisticsData = { +type StatisticsData = { countRequest: number; countResponse: number; countError: number; @@ -22,11 +23,11 @@ export type StatisticsData = { stdDevTimeMeasurement: number; }; -export type Statistics = WorkerData & { +export type Statistics = { id: string; name: string; uri: string; createdAt: Date; updatedAt?: Date; - statisticsData: Map>; -}; + statisticsData: Map>; +} & WorkerData;