Files
supabase/apps/studio/data/usage/keys.ts
Kevin Grüneberg fc5d389a9f feat: rework usage overview (#19434)
- Added a quick indicator about over-usage on non-usage-based plans (free or pro with spend cap) at the top of the subscription page
- Removed the usage summary from upcoming invoice (replacement on the usage page)
- Added a new usage summary on the organization usage page
- Per-project breakdown for usage
- Displays costs for over-usage on usage-based plans
- Improved scrolling behaviour for anchors on usage page
- Metrics with higher usage/costs will be sorted to the top
- Insights into compute usage in summary
- Removed duplicate typing and rely on API types for usage DTO
- Usage can now be retrieved for a custom period and not just the current billing cycle
- Usage can be filtered by project
2023-12-05 16:50:02 +01:00

7 lines
358 B
TypeScript

export const usageKeys = {
usage: (projectRef: string | undefined) => ['projects', projectRef, 'usage'] as const,
orgUsage: (orgSlug: string | undefined, projectRef?: string, start?: string, end?: string) =>
['organizations', orgSlug, 'usage', projectRef, start, end] as const,
resourceWarnings: () => ['projects', 'resource-warnings'] as const,
}