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:
parent
ac907dc7c1
commit
901bcf5c18
12 changed files with 296 additions and 22 deletions
|
@ -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'
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
export type VideoStatsTimeserieGroupInterval = 'one_day' | 'one_hour' | 'ten_minutes' | 'one_minute'
|
|
@ -0,0 +1,4 @@
|
|||
export interface VideoStatsTimeserieQuery {
|
||||
startDate?: string
|
||||
endDate?: string
|
||||
}
|
|
@ -1,4 +1,8 @@
|
|||
import { VideoStatsTimeserieGroupInterval } from './video-stats-timeserie-group-interval.type'
|
||||
|
||||
export interface VideoStatsTimeserie {
|
||||
groupInterval: VideoStatsTimeserieGroupInterval
|
||||
|
||||
data: {
|
||||
date: string
|
||||
value: number
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue