mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
project usage updates
This commit is contained in:
parent
e4bdbdd9ba
commit
3159e5de0c
2 changed files with 7 additions and 1 deletions
|
|
@ -49,7 +49,10 @@ App::get('/v1/project/usage')
|
||||||
METRIC_FILES_STORAGE,
|
METRIC_FILES_STORAGE,
|
||||||
METRIC_DATABASES_STORAGE,
|
METRIC_DATABASES_STORAGE,
|
||||||
METRIC_DEPLOYMENTS_STORAGE,
|
METRIC_DEPLOYMENTS_STORAGE,
|
||||||
METRIC_BUILDS_STORAGE
|
METRIC_BUILDS_STORAGE,
|
||||||
|
METRIC_BACKUPS_STORAGE,
|
||||||
|
METRIC_NETWORK_INBOUND,
|
||||||
|
METRIC_NETWORK_OUTBOUND,
|
||||||
],
|
],
|
||||||
'period' => [
|
'period' => [
|
||||||
METRIC_NETWORK_REQUESTS,
|
METRIC_NETWORK_REQUESTS,
|
||||||
|
|
@ -289,12 +292,14 @@ App::get('/v1/project/usage')
|
||||||
'documentsTotal' => $total[METRIC_DOCUMENTS],
|
'documentsTotal' => $total[METRIC_DOCUMENTS],
|
||||||
'databasesTotal' => $total[METRIC_DATABASES],
|
'databasesTotal' => $total[METRIC_DATABASES],
|
||||||
'databasesStorageTotal' => $total[METRIC_DATABASES_STORAGE],
|
'databasesStorageTotal' => $total[METRIC_DATABASES_STORAGE],
|
||||||
|
'backupsStorageTotal' => $total[METRIC_BACKUPS_STORAGE],
|
||||||
'usersTotal' => $total[METRIC_USERS],
|
'usersTotal' => $total[METRIC_USERS],
|
||||||
'bucketsTotal' => $total[METRIC_BUCKETS],
|
'bucketsTotal' => $total[METRIC_BUCKETS],
|
||||||
'filesStorageTotal' => $total[METRIC_FILES_STORAGE],
|
'filesStorageTotal' => $total[METRIC_FILES_STORAGE],
|
||||||
'functionsStorageTotal' => $total[METRIC_DEPLOYMENTS_STORAGE] + $total[METRIC_BUILDS_STORAGE],
|
'functionsStorageTotal' => $total[METRIC_DEPLOYMENTS_STORAGE] + $total[METRIC_BUILDS_STORAGE],
|
||||||
'buildsStorageTotal' => $total[METRIC_BUILDS_STORAGE],
|
'buildsStorageTotal' => $total[METRIC_BUILDS_STORAGE],
|
||||||
'deploymentsStorageTotal' => $total[METRIC_DEPLOYMENTS_STORAGE],
|
'deploymentsStorageTotal' => $total[METRIC_DEPLOYMENTS_STORAGE],
|
||||||
|
'networkTotal' => $total[METRIC_NETWORK_INBOUND]+$total[METRIC_NETWORK_OUTBOUND],
|
||||||
'executionsBreakdown' => $executionsBreakdown,
|
'executionsBreakdown' => $executionsBreakdown,
|
||||||
'executionsMbSecondsBreakdown' => $executionsMbSecondsBreakdown,
|
'executionsMbSecondsBreakdown' => $executionsMbSecondsBreakdown,
|
||||||
'buildsMbSecondsBreakdown' => $buildsMbSecondsBreakdown,
|
'buildsMbSecondsBreakdown' => $buildsMbSecondsBreakdown,
|
||||||
|
|
|
||||||
|
|
@ -259,6 +259,7 @@ const METRIC_DOCUMENTS = 'documents';
|
||||||
const METRIC_DATABASE_ID_DOCUMENTS = '{databaseInternalId}.documents';
|
const METRIC_DATABASE_ID_DOCUMENTS = '{databaseInternalId}.documents';
|
||||||
const METRIC_DATABASE_ID_COLLECTION_ID_DOCUMENTS = '{databaseInternalId}.{collectionInternalId}.documents';
|
const METRIC_DATABASE_ID_COLLECTION_ID_DOCUMENTS = '{databaseInternalId}.{collectionInternalId}.documents';
|
||||||
const METRIC_DATABASE_ID_COLLECTION_ID_STORAGE = '{databaseInternalId}.{collectionInternalId}.databases.storage';
|
const METRIC_DATABASE_ID_COLLECTION_ID_STORAGE = '{databaseInternalId}.{collectionInternalId}.databases.storage';
|
||||||
|
const METRIC_BACKUPS_STORAGE = 'backups.storage';
|
||||||
const METRIC_BUCKETS = 'buckets';
|
const METRIC_BUCKETS = 'buckets';
|
||||||
const METRIC_FILES = 'files';
|
const METRIC_FILES = 'files';
|
||||||
const METRIC_FILES_STORAGE = 'files.storage';
|
const METRIC_FILES_STORAGE = 'files.storage';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue