2022-07-05 09:43:21 -04:00
|
|
|
import { ActivityType } from '../activitypub'
|
2020-01-10 04:11:28 -05:00
|
|
|
import { VideoRedundancyStrategyWithManual } from '../redundancy'
|
2022-07-05 09:43:21 -04:00
|
|
|
|
|
|
|
type ActivityPubMessagesSuccess = Record<`totalActivityPub${ActivityType}MessagesSuccesses`, number>
|
|
|
|
type ActivityPubMessagesErrors = Record<`totalActivityPub${ActivityType}MessagesErrors`, number>
|
|
|
|
|
|
|
|
export interface ServerStats extends ActivityPubMessagesSuccess, ActivityPubMessagesErrors {
|
2018-02-28 12:04:46 -05:00
|
|
|
totalUsers: number
|
2020-05-07 04:39:09 -04:00
|
|
|
totalDailyActiveUsers: number
|
|
|
|
totalWeeklyActiveUsers: number
|
|
|
|
totalMonthlyActiveUsers: number
|
|
|
|
|
2018-02-28 12:04:46 -05:00
|
|
|
totalLocalVideos: number
|
|
|
|
totalLocalVideoViews: number
|
|
|
|
totalLocalVideoComments: number
|
2019-01-15 03:45:54 -05:00
|
|
|
totalLocalVideoFilesSize: number
|
2018-02-28 12:04:46 -05:00
|
|
|
|
|
|
|
totalVideos: number
|
|
|
|
totalVideoComments: number
|
|
|
|
|
2021-04-12 05:19:07 -04:00
|
|
|
totalLocalVideoChannels: number
|
|
|
|
totalLocalDailyActiveVideoChannels: number
|
|
|
|
totalLocalWeeklyActiveVideoChannels: number
|
|
|
|
totalLocalMonthlyActiveVideoChannels: number
|
|
|
|
|
|
|
|
totalLocalPlaylists: number
|
|
|
|
|
2018-02-28 12:04:46 -05:00
|
|
|
totalInstanceFollowers: number
|
|
|
|
totalInstanceFollowing: number
|
2018-09-14 08:57:59 -04:00
|
|
|
|
2020-01-10 04:11:28 -05:00
|
|
|
videosRedundancy: VideosRedundancyStats[]
|
2020-12-15 07:34:58 -05:00
|
|
|
|
|
|
|
totalActivityPubMessagesProcessed: number
|
2021-02-26 04:28:11 -05:00
|
|
|
totalActivityPubMessagesSuccesses: number
|
|
|
|
totalActivityPubMessagesErrors: number
|
|
|
|
|
2020-12-15 07:34:58 -05:00
|
|
|
activityPubMessagesProcessedPerSecond: number
|
|
|
|
totalActivityPubMessagesWaiting: number
|
2020-01-10 04:11:28 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface VideosRedundancyStats {
|
|
|
|
strategy: VideoRedundancyStrategyWithManual
|
|
|
|
totalSize: number
|
|
|
|
totalUsed: number
|
|
|
|
totalVideoFiles: number
|
|
|
|
totalVideos: number
|
2018-02-28 12:04:46 -05:00
|
|
|
}
|