X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FCommandStatistics.ts;h=84f2bdcae5634204f22e483f6ff4e1ffa9260a38;hb=46eb543c2eb31661c078b7e9697dacc593d83e5e;hp=9c1896f43fa4ebffb250864bb458971a7b0c2c5f;hpb=6bf6769ef4ee4fd3935a442243984a8aa2136e53;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/CommandStatistics.ts b/src/types/CommandStatistics.ts index 9c1896f4..84f2bdca 100644 --- a/src/types/CommandStatistics.ts +++ b/src/types/CommandStatistics.ts @@ -1,3 +1,4 @@ +import CircularArray from '../utils/CircularArray'; import { EntryType } from 'perf_hooks'; export interface PerfEntry { @@ -12,7 +13,7 @@ export interface CommandStatisticsData { countResponse: number; countError: number; countTimeMeasurement: number; - timeMeasurementSeries: number[]; + timeMeasurementSeries: CircularArray; currentTimeMeasurement: number; minTimeMeasurement: number; maxTimeMeasurement: number; @@ -22,5 +23,6 @@ export interface CommandStatisticsData { } export default interface CommandStatistics { - [command: string]: CommandStatisticsData; + id: string; + commandsStatisticsData: Record; }