1
0
Fork 0
mirror of synced 2024-06-28 03:01:15 +12:00

enabled stats

This commit is contained in:
eldadfux 2019-08-07 10:02:00 +03:00
parent 986c8cdc70
commit 32fea90efb

View file

@ -198,12 +198,12 @@ $utopia->get('/v1/projects/:projectId/usage')
$response->json([
'requests' => [
//'data' => $requests,
//'total' => array_sum(array_map(function($item) {return $item['value'];}, $requests)),
'data' => $requests,
'total' => array_sum(array_map(function($item) {return $item['value'];}, $requests)),
],
'network' => [
//'data' => $network,
//'total' => array_sum(array_map(function($item) {return $item['value'];}, $network)),
'data' => $network,
'total' => array_sum(array_map(function($item) {return $item['value'];}, $network)),
],
'collections' => [
'data' => $collections,