X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FStatistics.ts;h=5f22cdafd7347c774a9b3472fdaa1b7bb724089f;hb=0ac97927984473fcb11a177f013b0e112638e050;hp=37460aee97cb0382cc322a4f8745d77204045d1e;hpb=953d6b028e82d6997897802afefbb4ce0d225dee;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/Statistics.ts b/src/types/Statistics.ts index 37460aee..5f22cdaf 100644 --- a/src/types/Statistics.ts +++ b/src/types/Statistics.ts @@ -1,13 +1,13 @@ -import type { CircularArray } from '../utils/CircularArray'; -import type { IncomingRequestCommand, RequestCommand } from './ocpp/Requests'; -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; @@ -23,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;