mirror of https://github.com/Chocobozzz/PeerTube
48 lines
1.4 KiB
TypeScript
48 lines
1.4 KiB
TypeScript
import { ActivityType } from '../activitypub'
|
|
import { VideoRedundancyStrategyWithManual } from '../redundancy'
|
|
|
|
type ActivityPubMessagesSuccess = Record<`totalActivityPub${ActivityType}MessagesSuccesses`, number>
|
|
type ActivityPubMessagesErrors = Record<`totalActivityPub${ActivityType}MessagesErrors`, number>
|
|
|
|
export interface ServerStats extends ActivityPubMessagesSuccess, ActivityPubMessagesErrors {
|
|
totalUsers: number
|
|
totalDailyActiveUsers: number
|
|
totalWeeklyActiveUsers: number
|
|
totalMonthlyActiveUsers: number
|
|
|
|
totalLocalVideos: number
|
|
totalLocalVideoViews: number
|
|
totalLocalVideoComments: number
|
|
totalLocalVideoFilesSize: number
|
|
|
|
totalVideos: number
|
|
totalVideoComments: number
|
|
|
|
totalLocalVideoChannels: number
|
|
totalLocalDailyActiveVideoChannels: number
|
|
totalLocalWeeklyActiveVideoChannels: number
|
|
totalLocalMonthlyActiveVideoChannels: number
|
|
|
|
totalLocalPlaylists: number
|
|
|
|
totalInstanceFollowers: number
|
|
totalInstanceFollowing: number
|
|
|
|
videosRedundancy: VideosRedundancyStats[]
|
|
|
|
totalActivityPubMessagesProcessed: number
|
|
totalActivityPubMessagesSuccesses: number
|
|
totalActivityPubMessagesErrors: number
|
|
|
|
activityPubMessagesProcessedPerSecond: number
|
|
totalActivityPubMessagesWaiting: number
|
|
}
|
|
|
|
export interface VideosRedundancyStats {
|
|
strategy: VideoRedundancyStrategyWithManual
|
|
totalSize: number
|
|
totalUsed: number
|
|
totalVideoFiles: number
|
|
totalVideos: number
|
|
}
|