X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FCommandStatistics.ts;h=2b84a5e4abca4e368deaf332ce31e18a85db059c;hb=510f0fa5461cada6ca7c0e2aea525674fb00f079;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..2b84a5e4 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; }