diff options
Diffstat (limited to 'shared/models')
-rw-r--r-- | shared/models/index.ts | 1 | ||||
-rw-r--r-- | shared/models/metrics/index.ts | 1 | ||||
-rw-r--r-- | shared/models/metrics/playback-metric-create.model.ts | 19 |
3 files changed, 21 insertions, 0 deletions
diff --git a/shared/models/index.ts b/shared/models/index.ts index 78723d830..439e9c8e1 100644 --- a/shared/models/index.ts +++ b/shared/models/index.ts | |||
@@ -6,6 +6,7 @@ export * from './custom-markup' | |||
6 | export * from './feeds' | 6 | export * from './feeds' |
7 | export * from './http' | 7 | export * from './http' |
8 | export * from './joinpeertube' | 8 | export * from './joinpeertube' |
9 | export * from './metrics' | ||
9 | export * from './moderation' | 10 | export * from './moderation' |
10 | export * from './overviews' | 11 | export * from './overviews' |
11 | export * from './plugins' | 12 | export * from './plugins' |
diff --git a/shared/models/metrics/index.ts b/shared/models/metrics/index.ts new file mode 100644 index 000000000..24194cce3 --- /dev/null +++ b/shared/models/metrics/index.ts | |||
@@ -0,0 +1 @@ | |||
export * from './playback-metric-create.model' | |||
diff --git a/shared/models/metrics/playback-metric-create.model.ts b/shared/models/metrics/playback-metric-create.model.ts new file mode 100644 index 000000000..d669ab690 --- /dev/null +++ b/shared/models/metrics/playback-metric-create.model.ts | |||
@@ -0,0 +1,19 @@ | |||
1 | import { VideoResolution } from '../videos' | ||
2 | |||
3 | export interface PlaybackMetricCreate { | ||
4 | playerMode: 'p2p-media-loader' | 'webtorrent' | ||
5 | |||
6 | resolution?: VideoResolution | ||
7 | fps?: number | ||
8 | |||
9 | resolutionChanges: number | ||
10 | |||
11 | errors: number | ||
12 | |||
13 | downloadedBytesP2P: number | ||
14 | downloadedBytesHTTP: number | ||
15 | |||
16 | uploadedBytesP2P: number | ||
17 | |||
18 | videoId: number | string | ||
19 | } | ||