Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

feat(usage): show functions usage

Kevin Grüneberg5d6e6b261294
diff --git a/studio/components/interfaces/Billing/Billing.constants.tsx b/studio/components/interfaces/Billing/Billing.constants.tsx
index e246a093ddd..00225246d08 100644
--- a/studio/components/interfaces/Billing/Billing.constants.tsx
+++ b/studio/components/interfaces/Billing/Billing.constants.tsx
@@ -1,4 +1,4 @@
-import { IconArchive, IconDatabase, IconKey } from 'ui'
+import { IconArchive, IconCode, IconDatabase, IconKey } from 'ui'
export const CANCELLATION_REASONS = [
'Pricing',
@@ -71,4 +71,25 @@ export const USAGE_BASED_PRODUCTS = [
},
],
},
+ {
+ title: 'Functions',
+ icon: <IconCode className="dark:text-scale-100" size={16} strokeWidth={2} />,
+ features: [
+ {
+ key: 'func_count',
+ attribute: 'func_count',
+ title: 'Function Count',
+ units: 'absolute',
+ costPerUnit: 0.1,
+ },
+
+ {
+ key: 'func_invocations',
+ attribute: 'func_invocations',
+ title: 'Function Invocations',
+ units: 'absolute',
+ costPerUnit: 0.000002,
+ }
+ ],
+ },
]