diff --git a/apps/studio/components/interfaces/Home/ProjectUsage.tsx b/apps/studio/components/interfaces/Home/ProjectUsage.tsx index c681a870c78..1157c195272 100644 --- a/apps/studio/components/interfaces/Home/ProjectUsage.tsx +++ b/apps/studio/components/interfaces/Home/ProjectUsage.tsx @@ -1,6 +1,6 @@ import dayjs from 'dayjs' import sumBy from 'lodash/sumBy' -import { Archive, ChevronDown, Database, Key, Zap } from 'lucide-react' +import { Archive, ChevronDown, Code, Database, Key, Zap } from 'lucide-react' import Link from 'next/link' import { useRouter } from 'next/router' import { useState } from 'react' @@ -92,21 +92,25 @@ const ProjectUsage = () => { 'timestamp', [ 'total_auth_requests', - 'total_rest_requests', + 'total_func_invocations', 'total_storage_requests', 'total_realtime_requests', + 'total_requests', ], 0, startDateLocal.toISOString(), endDateLocal.toISOString(), 5 ) + + console.log('data:', data) + const datetimeFormat = selectedInterval.format || 'MMM D, ha' const handleBarClick = ( value: UsageApiCounts, // TODO (ziinc): link to edge logs with correct filter applied - _type: 'rest' | 'realtime' | 'storage' | 'auth' + _type: 'rest' | 'realtime' | 'storage' | 'auth' | 'edge-functions' ) => { const unit = selectedInterval.startUnit const selectedStart = dayjs(value?.timestamp) @@ -182,7 +186,7 @@ const ProjectUsage = () => { Statistics for {selectedInterval.label.toLowerCase()} -
+