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
Convert Statistics interface to type
[e-mobility-charging-stations-simulator.git]
/
src
/
types
/
Statistics.ts
diff --git
a/src/types/Statistics.ts
b/src/types/Statistics.ts
index 628ad28b6d150a582acacd875dd575dd18c5d5e5..72f96696905165847155a305ddb8b4d5e3f8ab5b 100644
(file)
--- a/
src/types/Statistics.ts
+++ b/
src/types/Statistics.ts
@@
-1,12
+1,12
@@
import type { CircularArray } from '../utils/CircularArray';
import type { WorkerData } from './Worker';
import type { CircularArray } from '../utils/CircularArray';
import type { WorkerData } from './Worker';
-export
interface TimeSeries
{
+export
type TimeSeries =
{
timestamp: number;
value: number;
timestamp: number;
value: number;
-}
+}
;
-export
interface StatisticsData
{
+export
type StatisticsData =
{
countRequest: number;
countResponse: number;
countError: number;
countRequest: number;
countResponse: number;
countError: number;
@@
-20,13
+20,13
@@
export interface StatisticsData {
medTimeMeasurement: number;
ninetyFiveThPercentileTimeMeasurement: number;
stdDevTimeMeasurement: number;
medTimeMeasurement: number;
ninetyFiveThPercentileTimeMeasurement: number;
stdDevTimeMeasurement: number;
-}
+}
;
-export
default interface Statistics extends WorkerData
{
+export
type Statistics = WorkerData &
{
id: string;
name: string;
uri: string;
createdAt: Date;
updatedAt?: Date;
statisticsData: Map<string, Partial<StatisticsData>>;
id: string;
name: string;
uri: string;
createdAt: Date;
updatedAt?: Date;
statisticsData: Map<string, Partial<StatisticsData>>;
-}
+}
;