From 33a8da45bd3fd57cd95752b219859e1a705e2b17 Mon Sep 17 00:00:00 2001 From: shimon Date: Wed, 25 Dec 2024 12:34:02 +0200 Subject: [PATCH] rollback project usage changes --- app/controllers/api/project.php | 7 +------ app/init.php | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/app/controllers/api/project.php b/app/controllers/api/project.php index 0e549e951c..45c8f2c32b 100644 --- a/app/controllers/api/project.php +++ b/app/controllers/api/project.php @@ -49,10 +49,7 @@ App::get('/v1/project/usage') METRIC_FILES_STORAGE, METRIC_DATABASES_STORAGE, METRIC_DEPLOYMENTS_STORAGE, - METRIC_BUILDS_STORAGE, - METRIC_BACKUPS_STORAGE, - METRIC_NETWORK_INBOUND, - METRIC_NETWORK_OUTBOUND, + METRIC_BUILDS_STORAGE ], 'period' => [ METRIC_NETWORK_REQUESTS, @@ -292,14 +289,12 @@ App::get('/v1/project/usage') 'documentsTotal' => $total[METRIC_DOCUMENTS], 'databasesTotal' => $total[METRIC_DATABASES], 'databasesStorageTotal' => $total[METRIC_DATABASES_STORAGE], - 'backupsStorageTotal' => $total[METRIC_BACKUPS_STORAGE], 'usersTotal' => $total[METRIC_USERS], 'bucketsTotal' => $total[METRIC_BUCKETS], 'filesStorageTotal' => $total[METRIC_FILES_STORAGE], 'functionsStorageTotal' => $total[METRIC_DEPLOYMENTS_STORAGE] + $total[METRIC_BUILDS_STORAGE], 'buildsStorageTotal' => $total[METRIC_BUILDS_STORAGE], 'deploymentsStorageTotal' => $total[METRIC_DEPLOYMENTS_STORAGE], - 'networkTotal' => $total[METRIC_NETWORK_INBOUND]+$total[METRIC_NETWORK_OUTBOUND], 'executionsBreakdown' => $executionsBreakdown, 'executionsMbSecondsBreakdown' => $executionsMbSecondsBreakdown, 'buildsMbSecondsBreakdown' => $buildsMbSecondsBreakdown, diff --git a/app/init.php b/app/init.php index 1065014d1e..ace69303e3 100644 --- a/app/init.php +++ b/app/init.php @@ -259,7 +259,6 @@ const METRIC_DOCUMENTS = 'documents'; const METRIC_DATABASE_ID_DOCUMENTS = '{databaseInternalId}.documents'; const METRIC_DATABASE_ID_COLLECTION_ID_DOCUMENTS = '{databaseInternalId}.{collectionInternalId}.documents'; const METRIC_DATABASE_ID_COLLECTION_ID_STORAGE = '{databaseInternalId}.{collectionInternalId}.databases.storage'; -const METRIC_BACKUPS_STORAGE = 'backups.storage'; const METRIC_BUCKETS = 'buckets'; const METRIC_FILES = 'files'; const METRIC_FILES_STORAGE = 'files.storage';