aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/server/server-stats.model.ts
blob: b1dcf20658ff6838f044e11c2ced782e7d313d98 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import { VideoRedundancyStrategyWithManual } from '../redundancy'
export interface ServerStats {
  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

  totalActivityPubCreateMessagesSuccesses: number
  totalActivityPubUpdateMessagesSuccesses: number
  totalActivityPubDeleteMessagesSuccesses: number
  totalActivityPubFollowMessagesSuccesses: number
  totalActivityPubAcceptMessagesSuccesses: number
  totalActivityPubRejectMessagesSuccesses: number
  totalActivityPubAnnounceMessagesSuccesses: number
  totalActivityPubUndoMessagesSuccesses: number
  totalActivityPubLikeMessagesSuccesses: number
  totalActivityPubDislikeMessagesSuccesses: number
  totalActivityPubFlagMessagesSuccesses: number
  totalActivityPubViewMessagesSuccesses: number

  totalActivityPubCreateMessagesErrors: number
  totalActivityPubUpdateMessagesErrors: number
  totalActivityPubDeleteMessagesErrors: number
  totalActivityPubFollowMessagesErrors: number
  totalActivityPubAcceptMessagesErrors: number
  totalActivityPubRejectMessagesErrors: number
  totalActivityPubAnnounceMessagesErrors: number
  totalActivityPubUndoMessagesErrors: number
  totalActivityPubLikeMessagesErrors: number
  totalActivityPubDislikeMessagesErrors: number
  totalActivityPubFlagMessagesErrors: number
  totalActivityPubViewMessagesErrors: number

  activityPubMessagesProcessedPerSecond: number
  totalActivityPubMessagesWaiting: number
}

export interface VideosRedundancyStats {
  strategy: VideoRedundancyStrategyWithManual
  totalSize: number
  totalUsed: number
  totalVideoFiles: number
  totalVideos: number
}