diff --git a/app/init/constants.php b/app/init/constants.php index 91a6dc73f9..9dcdf09817 100644 --- a/app/init/constants.php +++ b/app/init/constants.php @@ -412,10 +412,6 @@ const METRIC_REALTIME_CONNECTIONS_MESSAGES_SENT = 'realtime.messages.sent'; const METRIC_REALTIME_INBOUND = 'realtime.inbound'; const METRIC_REALTIME_OUTBOUND = 'realtime.outbound'; -// Presence API metrics -const METRIC_PRESENCE_UPSERTED = 'presences.upserted'; -const METRIC_PRESENCE_DELETED = 'presence.deleted'; - // Resource types const RESOURCE_TYPE_PROJECTS = 'projects'; const RESOURCE_TYPE_FUNCTIONS = 'functions'; diff --git a/src/Appwrite/Platform/Modules/Presences/HTTP/Delete.php b/src/Appwrite/Platform/Modules/Presences/HTTP/Delete.php index a8b9671a53..8edb364e55 100644 --- a/src/Appwrite/Platform/Modules/Presences/HTTP/Delete.php +++ b/src/Appwrite/Platform/Modules/Presences/HTTP/Delete.php @@ -76,7 +76,6 @@ class Delete extends PlatformAction (new PresenceState())->purgeListCache($dbForProject); - $usage->addMetric(METRIC_PRESENCE_DELETED, 1); $usage->addMetric(METRIC_USERS_PRESENCE, -1); $queueForEvents