Skip to content

Interface: QueueMetricsResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / QueueMetricsResponse

Defined in: src/types/ingestion.ts:1716

Response of GET /api/v1/ingest/queue-metrics.

documents is tenant-scoped: it counts the calling tenant’s own ingestion documents, and a tenant that never ingested sees zeros. Every other field is process-wide: it describes the pipeline that all tenants share. The optional fields are absent when the engine has no measurement.

optional activeWorkers?: number | null

Defined in: src/types/ingestion.ts:1718

Process-wide: workers processing a task now.


optional avgWaitTimeMs?: number | null

Defined in: src/types/ingestion.ts:1720

Process-wide: average time a task waited in the queue, in milliseconds.


circuitBreakerState: CircuitBreakerState

Defined in: src/types/ingestion.ts:1722

Process-wide: state of the LLM-ingestion circuit breaker.


documents: DocumentStatusCounts

Defined in: src/types/ingestion.ts:1724

Tenant-scoped: the calling tenant’s documents by status.


optional estimatedQueueTimeMs?: number | null

Defined in: src/types/ingestion.ts:1726

Process-wide: estimated time to drain the queue, in milliseconds.


optional maxWaitTimeMs?: number | null

Defined in: src/types/ingestion.ts:1728

Process-wide: longest wait observed in the current window, in milliseconds.


queueDepth: number

Defined in: src/types/ingestion.ts:1730

Process-wide: tasks waiting in the queue.


optional throughputPerMinute?: number | null

Defined in: src/types/ingestion.ts:1732

Process-wide: tasks completed per minute.


workerCount: number

Defined in: src/types/ingestion.ts:1734

Process-wide: configured workers.


optional workerUtilizationPct?: number | null

Defined in: src/types/ingestion.ts:1736

Process-wide: worker utilization, 0 to 100.