X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FStatistics.ts;h=bc6466c926f27b8067e91e67460cde57c0351630;hb=9f2e313013116428f5bce2be59e2f5c07502c026;hp=86a867584fb4e46d106a2c22c6c5d134f4d2e550;hpb=2a370053f45f2d58e90ab7b292294c521a262ca1;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/Statistics.ts b/src/types/Statistics.ts index 86a86758..bc6466c9 100644 --- a/src/types/Statistics.ts +++ b/src/types/Statistics.ts @@ -1,12 +1,16 @@ import { CircularArray } from '../utils/CircularArray'; -import { URL } from 'url'; + +export interface TimeSeries { + timestamp: number; + value: number; +} export interface StatisticsData { countRequest: number; countResponse: number; countError: number; countTimeMeasurement: number; - timeMeasurementSeries: CircularArray; + timeMeasurementSeries: CircularArray; currentTimeMeasurement: number; minTimeMeasurement: number; maxTimeMeasurement: number; @@ -19,8 +23,9 @@ export interface StatisticsData { export default interface Statistics { id: string; - URI: string; + name: string; + uri: string; createdAt: Date; - lastUpdatedAt?: Date; - statisticsData: Record; + updatedAt?: Date; + statisticsData: Map>; }