1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 10:19:35 +02:00

Add ability to set start/end date to timeserie

This commit is contained in:
Chocobozzz 2022-04-07 10:53:35 +02:00 committed by Chocobozzz
parent ac907dc7c1
commit 901bcf5c18
12 changed files with 296 additions and 22 deletions

View file

@ -1,4 +1,6 @@
export * from './video-stats-overall.model'
export * from './video-stats-retention.model'
export * from './video-stats-timeserie.model'
export * from './video-stats-timeserie-group-interval.type'
export * from './video-stats-timeserie-query.model'
export * from './video-stats-timeserie-metric.type'
export * from './video-stats-timeserie.model'

View file

@ -0,0 +1 @@
export type VideoStatsTimeserieGroupInterval = 'one_day' | 'one_hour' | 'ten_minutes' | 'one_minute'

View file

@ -0,0 +1,4 @@
export interface VideoStatsTimeserieQuery {
startDate?: string
endDate?: string
}

View file

@ -1,4 +1,8 @@
import { VideoStatsTimeserieGroupInterval } from './video-stats-timeserie-group-interval.type'
export interface VideoStatsTimeserie {
groupInterval: VideoStatsTimeserieGroupInterval
data: {
date: string
value: number