X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FStatistics.ts;h=ab2e826ae147039d96ae37b1ad5813ec589ddb89;hb=9d5b181b6165ba6b47b7ea9fb026747a9bb54b29;hp=93687190301bb429380385dedf04b4d871b0c03c;hpb=60a743910478b70e39dcefa5e1b752ec8a93880e;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/Statistics.ts b/src/types/Statistics.ts index 93687190..ab2e826a 100644 --- a/src/types/Statistics.ts +++ b/src/types/Statistics.ts @@ -1,18 +1,18 @@ -import type { IncomingRequestCommand, RequestCommand } from './internal'; +import type { IncomingRequestCommand, RequestCommand } from './ocpp/Requests'; import type { CircularArray } from '../utils'; import type { WorkerData } from '../worker'; -export type TimeSeries = { +export type TimestampedData = { timestamp: number; value: number; }; -export type StatisticsData = { +type StatisticsData = Partial<{ countRequest: number; countResponse: number; countError: number; countTimeMeasurement: number; - timeMeasurementSeries: CircularArray; + measurementTimeSeries: CircularArray; currentTimeMeasurement: number; minTimeMeasurement: number; maxTimeMeasurement: number; @@ -21,7 +21,7 @@ export type StatisticsData = { medTimeMeasurement: number; ninetyFiveThPercentileTimeMeasurement: number; stdDevTimeMeasurement: number; -}; +}>; export type Statistics = { id: string; @@ -29,5 +29,5 @@ export type Statistics = { uri: string; createdAt: Date; updatedAt?: Date; - statisticsData: Map>; + statisticsData: Map; } & WorkerData;