aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/server/server-stats.model.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-07-05 15:43:21 +0200
committerChocobozzz <me@florianbigard.com>2022-07-06 15:13:55 +0200
commit630d0a1bf5897fff203cb07e426223f55dcc882d (patch)
tree5e6fa9d26f3f21178a538bd1ac38fa0a3f4f228c /shared/models/server/server-stats.model.ts
parent15b43b214eb37b05aa65aa8ef61fd0e6aa0b62d2 (diff)
downloadPeerTube-630d0a1bf5897fff203cb07e426223f55dcc882d.tar.gz
PeerTube-630d0a1bf5897fff203cb07e426223f55dcc882d.tar.zst
PeerTube-630d0a1bf5897fff203cb07e426223f55dcc882d.zip
Introduce experimental telemetry
Diffstat (limited to 'shared/models/server/server-stats.model.ts')
-rw-r--r--shared/models/server/server-stats.model.ts33
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 @@
1import { ActivityType } from '../activitypub'
1import { VideoRedundancyStrategyWithManual } from '../redundancy' 2import { VideoRedundancyStrategyWithManual } from '../redundancy'
2export interface ServerStats { 3
4type ActivityPubMessagesSuccess = Record<`totalActivityPub${ActivityType}MessagesSuccesses`, number>
5type ActivityPubMessagesErrors = Record<`totalActivityPub${ActivityType}MessagesErrors`, number>
6
7export 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}