refactor: flag tunable as deprecated
[e-mobility-charging-stations-simulator.git] / src / types / Statistics.ts
index ab2e826ae147039d96ae37b1ad5813ec589ddb89..60b2379b77577757f4f5d883e828662645acb8f1 100644 (file)
@@ -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<TimestampedData>;
   currentTimeMeasurement: number;
   minTimeMeasurement: number;