Skip to content

Interface: QueueMetricsResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / QueueMetricsResponse

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

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:2022

Process-wide: workers processing a task now.


optional avgWaitTimeMs?: number | null

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

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


circuitBreakerState: CircuitBreakerState

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

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


documents: DocumentStatusCounts

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

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


optional estimatedQueueTimeMs?: number | null

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

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


optional maxWaitTimeMs?: number | null

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

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


queueDepth: number

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

Process-wide: tasks waiting in the queue.


optional throughputPerMinute?: number | null

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

Process-wide: tasks completed per minute.


workerCount: number

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

Process-wide: configured workers.


optional workerUtilizationPct?: number | null

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

Process-wide: worker utilization, 0 to 100.