mirror of
https://github.com/supabase/supabase.git
synced 2026-05-30 01:12:22 +08:00
- 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
7 lines
358 B
TypeScript
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,
|
|
}
|