X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FStatistics.ts;h=89511b0291ba22054c70b6f6583960f4ec4b8129;hb=840ca85d7c40a6ee6f3a85a50e68dbea2f90acb8;hp=ecb3c2bfc4afa4746d7e7698eee144d9a10c2cae;hpb=f4b3f35d653138a946d74d5f3c313275ee9c03b2;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/Statistics.ts b/src/types/Statistics.ts index ecb3c2bf..89511b02 100644 --- a/src/types/Statistics.ts +++ b/src/types/Statistics.ts @@ -1,6 +1,7 @@ -import type { IncomingRequestCommand, RequestCommand } from './ocpp/Requests.js' -import type { CircularArray } from '../utils/index.js' +import type { CircularBuffer } from 'mnemonist' + import type { WorkerData } from '../worker/index.js' +import type { IncomingRequestCommand, RequestCommand } from './ocpp/Requests.js' export interface TimestampedData { timestamp: number @@ -12,7 +13,7 @@ export type StatisticsData = Partial<{ responseCount: number errorCount: number timeMeasurementCount: number - measurementTimeSeries: CircularArray + measurementTimeSeries: CircularBuffer currentTimeMeasurement: number minTimeMeasurement: number maxTimeMeasurement: number @@ -32,8 +33,9 @@ export interface Statistics extends WorkerData { statisticsData: Map } -export interface InternalTemplateStatistics { +export interface TemplateStatistics { configured: number + provisioned: number added: number started: number indexes: Set