Add ability to list redundancies

This commit is contained in:
Chocobozzz 2020-01-10 10:11:28 +01:00 committed by Chocobozzz
parent 3ae0bbd23c
commit b764380ac2
64 changed files with 1807 additions and 195 deletions

View file

@ -1,4 +1,4 @@
import { VideoRedundancyStrategy } from '../redundancy'
import { VideoRedundancyStrategyWithManual } from '../redundancy'
export interface ServerStats {
totalUsers: number
@ -13,11 +13,13 @@ export interface ServerStats {
totalInstanceFollowers: number
totalInstanceFollowing: number
videosRedundancy: {
strategy: VideoRedundancyStrategy
totalSize: number
totalUsed: number
totalVideoFiles: number
totalVideos: number
}[]
videosRedundancy: VideosRedundancyStats[]
}
export interface VideosRedundancyStats {
strategy: VideoRedundancyStrategyWithManual
totalSize: number
totalUsed: number
totalVideoFiles: number
totalVideos: number
}