Files
supabase/studio/data/analytics/keys.ts
T

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,
}