diff --git a/app/controllers/api/functions.php b/app/controllers/api/functions.php index baff261f80..d4d3def140 100644 --- a/app/controllers/api/functions.php +++ b/app/controllers/api/functions.php @@ -1386,8 +1386,8 @@ App::get('/v1/functions/:functionId/usage') $stats = $usage = []; $days = $periods[$range]; $metrics = [ - 'functions.' . $function->getId() . '.deployments', - 'functions.' . $function->getId() . '.deployments.storage', + 'functions.' . $function->getInternalId() . '.deployments', + 'functions.' . $function->getInternalId() . '.deployments.storage', $function->getInternalId() . '.builds', $function->getInternalId() . '.builds.storage', $function->getInternalId() . '.builds.compute',