Developer
Developer - LLM Proxy

Get Llm Proxy Import State

Importer health: watermark, ingestion lag, last error, orphan counts, table size.

The orphan counts are the point. A metrics line whose bodies never arrived and a bodies line whose metrics never arrived are the two ways this importer can be silently half-working, and neither shows up in a row count.

get/developer/llm-proxy-requests/import-state

Response

Successful Response

log_groupstring required
last_event_atstring date-time nullable
last_run_atstring date-time nullable
last_run_statusstring nullable
last_errorstring nullable
last_events_scannedinteger nullable
last_rows_upsertedinteger nullable
watermark_lag_secondsnumber nullable

now - last_event_at

max_ingestion_lag_secondsnumber nullable

max(cw_ingested_at - logged_at) over the last 24h; must stay well under the overlap window

rows_totalinteger
rows_missing_bodiesinteger

Metrics line imported, bodies line never arrived

rows_missing_metricsinteger

Bodies line imported, metrics line never arrived

rows_unlinkedinteger

Rows with a vapi_call_id that resolved to no call

table_bytesinteger nullable

pg_total_relation_size of llm_proxy_request

import_enabledboolean

Changes