From 051a31f41723655880bceedd820665e582ac6279 Mon Sep 17 00:00:00 2001 From: shimon Date: Tue, 3 Oct 2023 17:41:57 +0300 Subject: [PATCH] remove usage executions from shared api --- app/controllers/shared/api.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/controllers/shared/api.php b/app/controllers/shared/api.php index 5486bcd86f..ba65fcc0c8 100644 --- a/app/controllers/shared/api.php +++ b/app/controllers/shared/api.php @@ -134,12 +134,6 @@ $databaseListener = function (string $event, Document $document, Document $proje ->addMetric(METRIC_DEPLOYMENTS_STORAGE, $document->getAttribute('size') * $value) // per project ->addMetric(str_replace(['{resourceType}', '{resourceInternalId}'], [$document->getAttribute('resourceType'), $document->getAttribute('resourceInternalId')], METRIC_FUNCTION_ID_DEPLOYMENTS), $value)// per function ->addMetric(str_replace(['{resourceType}', '{resourceInternalId}'], [$document->getAttribute('resourceType'), $document->getAttribute('resourceInternalId')], METRIC_FUNCTION_ID_DEPLOYMENTS_STORAGE), $document->getAttribute('size') * $value);// per function - - break; - case $document->getCollection() === 'executions': - $queueForUsage - ->addMetric(METRIC_EXECUTIONS, $value) // per project - ->addMetric(str_replace('{functionInternalId}', $document->getAttribute('functionInternalId'), METRIC_FUNCTION_ID_EXECUTIONS), $value);// per function break; default: break;