getHealthStatus() — supabase Function Reference
Architecture documentation for the getHealthStatus() function in ObservabilityOverview.utils.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD e46d510e_36d0_d279_c9e2_3efca1456e6c["getHealthStatus()"] dfd48934_1c51_626a_8ce9_07af567d381c["ServiceHealthCard()"] dfd48934_1c51_626a_8ce9_07af567d381c -->|calls| e46d510e_36d0_d279_c9e2_3efca1456e6c df81e8a0_5f6e_1c37_6098_621a2b4628c6["ServiceRow()"] df81e8a0_5f6e_1c37_6098_621a2b4628c6 -->|calls| e46d510e_36d0_d279_c9e2_3efca1456e6c style e46d510e_36d0_d279_c9e2_3efca1456e6c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/studio/components/interfaces/Observability/ObservabilityOverview.utils.ts lines 59–70
export const getHealthStatus = (
errorRate: number,
total: number
): { status: HealthStatus; color: string } => {
if (total < 100) {
return { status: 'unknown', color: 'muted' }
}
if (errorRate >= 1) {
return { status: 'error', color: 'destructive' }
}
return { status: 'healthy', color: 'brand' }
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getHealthStatus() do?
getHealthStatus() is a function in the supabase codebase.
What calls getHealthStatus()?
getHealthStatus() is called by 2 function(s): ServiceHealthCard, ServiceRow.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free