Get tenant enrichment status
Returns a tenant's enrichment progress across the record-level enrichments
(translation, sentiment, emotions). For each, enabled reports whether the enrichment
is active for the tenant (deployment-configured and switched on / with a resolvable
target language), and eligible/done are directory-level counts of feedback records
that qualify and that have been enriched — the UI derives "in progress" as
eligible - done, of which failed is retryable and failed_terminal never will be.
When an enrichment is not enabled its counts are zero and
disabled_reason names the gate that closed it, so the UI can explain why rather than
silently hiding the enrichment. as_of is when the counts were computed, which lets a
polling client derive throughput and an ETA without the Hub computing either. The response
contains counts only (no record identifiers or content).
Query Parameters
Tenant whose enrichment status should be returned.
Returns
When the counts were computed (UTC), not when the response was serialized. The
endpoint is polled, so two responses are enough to derive throughput and an ETA
client-side from the change in done over the change in as_of — the Hub computes
neither.
Get tenant enrichment status
curl http://localhost:8080/v1/enrichment-status \
-H "Authorization: Bearer $HUB_API_KEY"{
"as_of": "2019-12-27T18:11:19.117Z",
"emotions": {
"done": 0,
"eligible": 0,
"enabled": true,
"failed": 0,
"failed_terminal": 0,
"disabled_reason": "not_configured"
},
"sentiment": {
"done": 0,
"eligible": 0,
"enabled": true,
"failed": 0,
"failed_terminal": 0,
"disabled_reason": "not_configured"
},
"tenant_id": "tenant_id",
"translation": {
"done": 0,
"eligible": 0,
"enabled": true,
"failed": 0,
"failed_terminal": 0,
"disabled_reason": "not_configured"
}
}Returns Examples
{
"as_of": "2019-12-27T18:11:19.117Z",
"emotions": {
"done": 0,
"eligible": 0,
"enabled": true,
"failed": 0,
"failed_terminal": 0,
"disabled_reason": "not_configured"
},
"sentiment": {
"done": 0,
"eligible": 0,
"enabled": true,
"failed": 0,
"failed_terminal": 0,
"disabled_reason": "not_configured"
},
"tenant_id": "tenant_id",
"translation": {
"done": 0,
"eligible": 0,
"enabled": true,
"failed": 0,
"failed_terminal": 0,
"disabled_reason": "not_configured"
}
}