Interface: QueueMetricsResponse
@kortexya/reasoninglayer / QueueMetricsResponse
Interface: QueueMetricsResponse
Section titled “Interface: QueueMetricsResponse”Defined in: src/types/ingestion.ts:1716
Response of GET /api/v1/ingest/queue-metrics.
Remarks
Section titled “Remarks”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.
Properties
Section titled “Properties”activeWorkers?
Section titled “activeWorkers?”
optionalactiveWorkers?:number|null
Defined in: src/types/ingestion.ts:1718
Process-wide: workers processing a task now.
avgWaitTimeMs?
Section titled “avgWaitTimeMs?”
optionalavgWaitTimeMs?:number|null
Defined in: src/types/ingestion.ts:1720
Process-wide: average time a task waited in the queue, in milliseconds.
circuitBreakerState
Section titled “circuitBreakerState”circuitBreakerState:
CircuitBreakerState
Defined in: src/types/ingestion.ts:1722
Process-wide: state of the LLM-ingestion circuit breaker.
documents
Section titled “documents”documents:
DocumentStatusCounts
Defined in: src/types/ingestion.ts:1724
Tenant-scoped: the calling tenant’s documents by status.
estimatedQueueTimeMs?
Section titled “estimatedQueueTimeMs?”
optionalestimatedQueueTimeMs?:number|null
Defined in: src/types/ingestion.ts:1726
Process-wide: estimated time to drain the queue, in milliseconds.
maxWaitTimeMs?
Section titled “maxWaitTimeMs?”
optionalmaxWaitTimeMs?:number|null
Defined in: src/types/ingestion.ts:1728
Process-wide: longest wait observed in the current window, in milliseconds.
queueDepth
Section titled “queueDepth”queueDepth:
number
Defined in: src/types/ingestion.ts:1730
Process-wide: tasks waiting in the queue.
throughputPerMinute?
Section titled “throughputPerMinute?”
optionalthroughputPerMinute?:number|null
Defined in: src/types/ingestion.ts:1732
Process-wide: tasks completed per minute.
workerCount
Section titled “workerCount”workerCount:
number
Defined in: src/types/ingestion.ts:1734
Process-wide: configured workers.
workerUtilizationPct?
Section titled “workerUtilizationPct?”
optionalworkerUtilizationPct?:number|null
Defined in: src/types/ingestion.ts:1736
Process-wide: worker utilization, 0 to 100.