usePostgrestOverviewMetrics() — supabase Function Reference
Architecture documentation for the usePostgrestOverviewMetrics() function in usePostgrestOverviewMetrics.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 8eb4ef47_85f5_f303_fab9_d995c4addc86["usePostgrestOverviewMetrics()"] 6dc5f7b0_e897_c508_aed3_93dd2222b782["fetchPostgrestMetrics()"] 8eb4ef47_85f5_f303_fab9_d995c4addc86 -->|calls| 6dc5f7b0_e897_c508_aed3_93dd2222b782 style 8eb4ef47_85f5_f303_fab9_d995c4addc86 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/studio/components/interfaces/Observability/usePostgrestOverviewMetrics.ts lines 81–92
export const usePostgrestOverviewMetrics = (
{ projectRef, startDate, endDate, interval }: PostgrestMetricsVariables,
options?: { enabled?: boolean }
) => {
return useQuery({
queryKey: ['postgrest-overview-metrics', projectRef, startDate, endDate, interval],
queryFn: ({ signal }) =>
fetchPostgrestMetrics({ projectRef, startDate, endDate, interval }, signal),
enabled: (options?.enabled ?? true) && Boolean(projectRef),
staleTime: 1000 * 60,
})
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does usePostgrestOverviewMetrics() do?
usePostgrestOverviewMetrics() is a function in the supabase codebase.
What does usePostgrestOverviewMetrics() call?
usePostgrestOverviewMetrics() calls 1 function(s): fetchPostgrestMetrics.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free