repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
perf: use mnemonist CirculerBuffer
[e-mobility-charging-stations-simulator.git]
/
src
/
types
/
Statistics.ts
diff --git
a/src/types/Statistics.ts
b/src/types/Statistics.ts
index ecb3c2bfc4afa4746d7e7698eee144d9a10c2cae..89511b0291ba22054c70b6f6583960f4ec4b8129 100644
(file)
--- 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 { WorkerData } from '../worker/index.js'
+import type { IncomingRequestCommand, RequestCommand } from './ocpp/Requests.js'
export interface TimestampedData {
timestamp: number
export interface TimestampedData {
timestamp: number
@@
-12,7
+13,7
@@
export type StatisticsData = Partial<{
responseCount: number
errorCount: number
timeMeasurementCount: number
responseCount: number
errorCount: number
timeMeasurementCount: number
- measurementTimeSeries: Circular
Array
<TimestampedData>
+ measurementTimeSeries: Circular
Buffer
<TimestampedData>
currentTimeMeasurement: number
minTimeMeasurement: number
maxTimeMeasurement: number
currentTimeMeasurement: number
minTimeMeasurement: number
maxTimeMeasurement: number
@@
-32,8
+33,9
@@
export interface Statistics extends WorkerData {
statisticsData: Map<string | RequestCommand | IncomingRequestCommand, StatisticsData>
}
statisticsData: Map<string | RequestCommand | IncomingRequestCommand, StatisticsData>
}
-export interface
Internal
TemplateStatistics {
+export interface TemplateStatistics {
configured: number
configured: number
+ provisioned: number
added: number
started: number
indexes: Set<number>
added: number
started: number
indexes: Set<number>