mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 18:05:11 +03:00
37 lines
1.2 KiB
TypeScript
37 lines
1.2 KiB
TypeScript
import { LogsEndpointParams } from 'components/interfaces/Settings/Logs'
|
|
|
|
export const analyticsKeys = {
|
|
functionsInvStats: (
|
|
projectRef: string | undefined,
|
|
{ interval, functionId }: { functionId: string | undefined; interval: string | undefined }
|
|
) => ['projects', projectRef, 'functions-inv-stats', { interval, functionId }] as const,
|
|
dailyStats: (
|
|
projectRef: string | undefined,
|
|
{
|
|
attribute,
|
|
startDate,
|
|
endDate,
|
|
interval,
|
|
}: { attribute?: string; startDate?: string; endDate?: string; interval?: string }
|
|
) =>
|
|
['projects', projectRef, 'daily-stats', { attribute, startDate, endDate, interval }] as const,
|
|
infraMonitoring: (
|
|
projectRef: string | undefined,
|
|
{
|
|
attribute,
|
|
startDate,
|
|
endDate,
|
|
interval,
|
|
}: { attribute?: string; startDate?: string; endDate?: string; interval?: string }
|
|
) =>
|
|
[
|
|
'projects',
|
|
projectRef,
|
|
'infra-monitoring',
|
|
{ attribute, startDate, endDate, interval },
|
|
] as const,
|
|
usageApiCounts: (projectRef: string | undefined, interval: string | undefined) =>
|
|
['projects', projectRef, 'usage.api-counts', interval] as const,
|
|
}
|
|
|