X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftypes%2FStatistics.ts;h=60b2379b77577757f4f5d883e828662645acb8f1;hb=c4ab56bac3353a08b0b7e058e9edfcfc0e629c94;hp=ab2e826ae147039d96ae37b1ad5813ec589ddb89;hpb=f6778d744cf0bb0c9d352a7960b44c78d896f822;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/Statistics.ts b/src/types/Statistics.ts index ab2e826a..60b2379b 100644 --- a/src/types/Statistics.ts +++ b/src/types/Statistics.ts @@ -2,16 +2,16 @@ import type { IncomingRequestCommand, RequestCommand } from './ocpp/Requests'; import type { CircularArray } from '../utils'; import type { WorkerData } from '../worker'; -export type TimestampedData = { +export interface TimestampedData { timestamp: number; value: number; -}; +} -type StatisticsData = Partial<{ - countRequest: number; - countResponse: number; - countError: number; - countTimeMeasurement: number; +export type StatisticsData = Partial<{ + requestCount: number; + responseCount: number; + errorCount: number; + timeMeasurementCount: number; measurementTimeSeries: CircularArray; currentTimeMeasurement: number; minTimeMeasurement: number;