diff options
Diffstat (limited to 'shared/models/server')
-rw-r--r-- | shared/models/server/server-stats.model.ts | 33 |
1 files changed, 6 insertions, 27 deletions
diff --git a/shared/models/server/server-stats.model.ts b/shared/models/server/server-stats.model.ts index b1dcf2065..82f5a737f 100644 --- a/shared/models/server/server-stats.model.ts +++ b/shared/models/server/server-stats.model.ts | |||
@@ -1,5 +1,10 @@ | |||
1 | import { ActivityType } from '../activitypub' | ||
1 | import { VideoRedundancyStrategyWithManual } from '../redundancy' | 2 | import { VideoRedundancyStrategyWithManual } from '../redundancy' |
2 | export interface ServerStats { | 3 | |
4 | type ActivityPubMessagesSuccess = Record<`totalActivityPub${ActivityType}MessagesSuccesses`, number> | ||
5 | type ActivityPubMessagesErrors = Record<`totalActivityPub${ActivityType}MessagesErrors`, number> | ||
6 | |||
7 | export interface ServerStats extends ActivityPubMessagesSuccess, ActivityPubMessagesErrors { | ||
3 | totalUsers: number | 8 | totalUsers: number |
4 | totalDailyActiveUsers: number | 9 | totalDailyActiveUsers: number |
5 | totalWeeklyActiveUsers: number | 10 | totalWeeklyActiveUsers: number |
@@ -29,32 +34,6 @@ export interface ServerStats { | |||
29 | totalActivityPubMessagesSuccesses: number | 34 | totalActivityPubMessagesSuccesses: number |
30 | totalActivityPubMessagesErrors: number | 35 | totalActivityPubMessagesErrors: number |
31 | 36 | ||
32 | totalActivityPubCreateMessagesSuccesses: number | ||
33 | totalActivityPubUpdateMessagesSuccesses: number | ||
34 | totalActivityPubDeleteMessagesSuccesses: number | ||
35 | totalActivityPubFollowMessagesSuccesses: number | ||
36 | totalActivityPubAcceptMessagesSuccesses: number | ||
37 | totalActivityPubRejectMessagesSuccesses: number | ||
38 | totalActivityPubAnnounceMessagesSuccesses: number | ||
39 | totalActivityPubUndoMessagesSuccesses: number | ||
40 | totalActivityPubLikeMessagesSuccesses: number | ||
41 | totalActivityPubDislikeMessagesSuccesses: number | ||
42 | totalActivityPubFlagMessagesSuccesses: number | ||
43 | totalActivityPubViewMessagesSuccesses: number | ||
44 | |||
45 | totalActivityPubCreateMessagesErrors: number | ||
46 | totalActivityPubUpdateMessagesErrors: number | ||
47 | totalActivityPubDeleteMessagesErrors: number | ||
48 | totalActivityPubFollowMessagesErrors: number | ||
49 | totalActivityPubAcceptMessagesErrors: number | ||
50 | totalActivityPubRejectMessagesErrors: number | ||
51 | totalActivityPubAnnounceMessagesErrors: number | ||
52 | totalActivityPubUndoMessagesErrors: number | ||
53 | totalActivityPubLikeMessagesErrors: number | ||
54 | totalActivityPubDislikeMessagesErrors: number | ||
55 | totalActivityPubFlagMessagesErrors: number | ||
56 | totalActivityPubViewMessagesErrors: number | ||
57 | |||
58 | activityPubMessagesProcessedPerSecond: number | 37 | activityPubMessagesProcessedPerSecond: number |
59 | totalActivityPubMessagesWaiting: number | 38 | totalActivityPubMessagesWaiting: number |
60 | } | 39 | } |