From 543442a3be9d7740749eb3918dc59f502ff042f9 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 26 Feb 2021 10:28:11 +0100 Subject: Add more AP stats to stats endpoint It will help to understand if the federation correctly works or not --- shared/models/server/server-stats.model.ts | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) (limited to 'shared/models/server/server-stats.model.ts') 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 @@ import { VideoRedundancyStrategyWithManual } from '../redundancy' - export interface ServerStats { totalUsers: number totalDailyActiveUsers: number @@ -20,6 +19,35 @@ export interface ServerStats { 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 } -- cgit v1.2.3