mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Merge remote-tracking branch 'upstream/documents-db-api' into vector-db-api
This commit is contained in:
commit
fbaeff8920
2 files changed
+3
-7
No files matched your search
@@ -68,6 +68,7 @@ class StatsUsage extends Action
|
||||
METRIC_COLLECTIONS => true,
|
||||
METRIC_DOCUMENTS => true,
|
||||
METRIC_DATABASES_STORAGE => true,
|
||||
METRIC_DATABASES_STORAGE_DOCUMENTSDB => true,
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -501,7 +502,7 @@ class StatsUsage extends Action
|
||||
foreach ($this->skipParentIdMetrics as $skipMetric) {
|
||||
$metricParts = explode('.', $stat->getAttribute('metric'));
|
||||
$metric = implode('.', in_array($metricParts[0], self::DATABASE_PREFIXES) ? array_slice($metricParts, 1) : $metricParts);
|
||||
if (str_ends_with($metric, $metric)) {
|
||||
if (str_ends_with($metric, $skipMetric)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user