Interface: UseMetricViewResult\<T\>
Type Parameters
Section titled “Type Parameters”T = Record<string, unknown>[]
Properties
Section titled “Properties”data:
T|null
error:
string|null
errorCode
Section titled “errorCode”errorCode:
string|null
Structured upstream error code, mirroring useAnalyticsQuery.
loading
Section titled “loading”loading:
boolean
metadata
Section titled “metadata”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
Section titled “warehouseStatus”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.