fix: project usage documents to rows.

This commit is contained in:
Darshan 2025-05-05 14:43:09 +05:30
parent 75c9db8031
commit b905af91af
2 changed files with 3 additions and 3 deletions

View file

@ -353,7 +353,7 @@ App::get('/v1/project/usage')
'executionsTotal' => $total[METRIC_EXECUTIONS],
'executionsMbSecondsTotal' => $total[METRIC_EXECUTIONS_MB_SECONDS],
'buildsMbSecondsTotal' => $total[METRIC_BUILDS_MB_SECONDS],
'documentsTotal' => $total[METRIC_DOCUMENTS],
'rowsTotal' => $total[METRIC_DOCUMENTS],
'databasesTotal' => $total[METRIC_DATABASES],
'databasesStorageTotal' => $total[METRIC_DATABASES_STORAGE],
'usersTotal' => $total[METRIC_USERS],

View file

@ -16,9 +16,9 @@ class UsageProject extends Model
'default' => 0,
'example' => 0,
])
->addRule('documentsTotal', [
->addRule('rowsTotal', [
'type' => self::TYPE_INTEGER,
'description' => 'Total aggregated number of documents.',
'description' => 'Total aggregated number of rows.',
'default' => 0,
'example' => 0,
])