aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-02-26 10:28:11 +0100
committerChocobozzz <me@florianbigard.com>2021-02-26 10:28:11 +0100
commit543442a3be9d7740749eb3918dc59f502ff042f9 (patch)
tree3d2959757b7907ea9be8a6f6a69d4bab8521dbc3 /shared
parentcb2e36618ca5986949d4326ea939b5b08f3a9a82 (diff)
downloadPeerTube-543442a3be9d7740749eb3918dc59f502ff042f9.tar.gz
PeerTube-543442a3be9d7740749eb3918dc59f502ff042f9.tar.zst
PeerTube-543442a3be9d7740749eb3918dc59f502ff042f9.zip
Add more AP stats to stats endpoint
It will help to understand if the federation correctly works or not
Diffstat (limited to 'shared')
-rw-r--r--shared/models/server/server-stats.model.ts30
1 files changed, 29 insertions, 1 deletions
diff --git a/shared/models/server/server-stats.model.ts b/shared/models/server/server-stats.model.ts
index d17c43945..0f8cfc6cf 100644
--- a/shared/models/server/server-stats.model.ts
+++ b/shared/models/server/server-stats.model.ts
@@ -1,5 +1,4 @@
1import { VideoRedundancyStrategyWithManual } from '../redundancy' 1import { VideoRedundancyStrategyWithManual } from '../redundancy'
2
3export interface ServerStats { 2export interface ServerStats {
4 totalUsers: number 3 totalUsers: number
5 totalDailyActiveUsers: number 4 totalDailyActiveUsers: number
@@ -20,6 +19,35 @@ export interface ServerStats {
20 videosRedundancy: VideosRedundancyStats[] 19 videosRedundancy: VideosRedundancyStats[]
21 20
22 totalActivityPubMessagesProcessed: number 21 totalActivityPubMessagesProcessed: number
22 totalActivityPubMessagesSuccesses: number
23 totalActivityPubMessagesErrors: number
24
25 totalActivityPubCreateMessagesSuccesses: number
26 totalActivityPubUpdateMessagesSuccesses: number
27 totalActivityPubDeleteMessagesSuccesses: number
28 totalActivityPubFollowMessagesSuccesses: number
29 totalActivityPubAcceptMessagesSuccesses: number
30 totalActivityPubRejectMessagesSuccesses: number
31 totalActivityPubAnnounceMessagesSuccesses: number
32 totalActivityPubUndoMessagesSuccesses: number
33 totalActivityPubLikeMessagesSuccesses: number
34 totalActivityPubDislikeMessagesSuccesses: number
35 totalActivityPubFlagMessagesSuccesses: number
36 totalActivityPubViewMessagesSuccesses: number
37
38 totalActivityPubCreateMessagesErrors: number
39 totalActivityPubUpdateMessagesErrors: number
40 totalActivityPubDeleteMessagesErrors: number
41 totalActivityPubFollowMessagesErrors: number
42 totalActivityPubAcceptMessagesErrors: number
43 totalActivityPubRejectMessagesErrors: number
44 totalActivityPubAnnounceMessagesErrors: number
45 totalActivityPubUndoMessagesErrors: number
46 totalActivityPubLikeMessagesErrors: number
47 totalActivityPubDislikeMessagesErrors: number
48 totalActivityPubFlagMessagesErrors: number
49 totalActivityPubViewMessagesErrors: number
50
23 activityPubMessagesProcessedPerSecond: number 51 activityPubMessagesProcessedPerSecond: number
24 totalActivityPubMessagesWaiting: number 52 totalActivityPubMessagesWaiting: number
25} 53}