X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FCommandStatistics.ts;h=e4804f8a1fff05d6661920a563e19ddf46aa1216;hb=aa8cbc5c65e51e1d7c955186847b7105a292d42f;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..e4804f8a 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,15 +13,17 @@ export interface CommandStatisticsData { countResponse: number; countError: number; countTimeMeasurement: number; - timeMeasurementSeries: number[]; + timeMeasurementSeries: CircularArray; currentTimeMeasurement: number; minTimeMeasurement: number; maxTimeMeasurement: number; totalTimeMeasurement: number; avgTimeMeasurement: number; medTimeMeasurement: number; + stdDevTimeMeasurement: number; } export default interface CommandStatistics { - [command: string]: CommandStatisticsData; + id: string; + commandsStatisticsData: Record; }