Interface: EngineStatsResponse
@kortexya/reasoninglayer / EngineStatsResponse
Interface: EngineStatsResponse
Section titled “Interface: EngineStatsResponse”Defined in: src/types/engine.ts:26
The caller’s tenant’s term, rule and sort counts, from one request.
Remarks
Section titled “Remarks”Each count equals the total of the listing it summarises, so a dashboard no longer sums substrate listings itself:
termCount— thetotalofGET /api/v1/terms: asserted terms and the rule conclusions this process has materialised, without rule scaffolding.ruleCount— thecountofGET /api/v1/inference/rules/{tenant_id}: the tenant’s own rules and those of system-wide plugins.tenantSortCount + sharedSortCount— thetotalofGET /api/v1/sorts/tenant/{tenant_id}?include_system=true.
Example
Section titled “Example”const stats: EngineStatsResponse = await client.engine.getStats();const sorts = stats.tenantSortCount + stats.sharedSortCount;Properties
Section titled “Properties”ruleCount
Section titled “ruleCount”ruleCount:
number
Defined in: src/types/engine.ts:32
The rules GET /api/v1/inference/rules/{tenant_id} lists.
sharedSortCount
Section titled “sharedSortCount”sharedSortCount:
number
Defined in: src/types/engine.ts:39
The shared sorts the tenant can see: the engine’s built-in lattice and system-wide plugin sorts.
tenantId
Section titled “tenantId”tenantId:
string
Defined in: src/types/engine.ts:28
The tenant these counts belong to: the authenticated principal (UUID).
tenantSortCount
Section titled “tenantSortCount”tenantSortCount:
number
Defined in: src/types/engine.ts:34
The sorts the tenant owns.
termCount
Section titled “termCount”termCount:
number
Defined in: src/types/engine.ts:30
The terms GET /api/v1/terms lists.