Skip to content

Interface: UseMetricViewResult\<T\>

T = Record<string, unknown>[]

data: T | null


error: string | null


errorCode: string | null

Structured upstream error code, mirroring useAnalyticsQuery.


loading: boolean


metadata: Record<string, MetricViewColumnDisplay> | undefined

Per-column display metadata for the queried columns, carried in the SSE result payload. undefined when the server injected no metadata (dormant / unknown key).


warehouseStatus: WarehouseStatus | null

Latest warehouse status emitted while waiting for the SQL warehouse to reach RUNNING. null until the current request receives a status event.