Skip to navigation

Get a project's topics

View as Markdown

The project’s topics over the window, the last topics.run.windowDays UTC days (default 30), today included: per topic its count, share, rank and a daily series, plus Other’s daily series. Counts can be up to 5 minutes old. status is disabled when the workspace is not opted in to topics, collecting while the project has no topics yet, too_large when a ClickHouse read hit a rows, bytes or memory guard (a retry answers the same, so do not retry), and ready otherwise. Fields of other states are omitted.

Query parameters

project_idstringRequiredformat: "uuid"

Response

The project’s topics, or status too_large when a read hit a size guard

statusenumOptional

disabled: the workspace is not opted in to topics. collecting: the project has no topics yet. ready: topics with counts. too_large: the project has too many traces in the window to count; a retry answers the same

Allowed values:
todaydateOptional
The UTC date of the request, the window's last day
window_fromdateOptional
The window's first UTC day, inclusive
last_run_atdatetimeOptional

When the project’s last saved run (a discovery run or a nightly update) finished; omitted before the first one

attemptobjectOptional

collecting only: the project’s newest run when it is running or failed; omitted when it saved or there is none. The runbook’s ‘Reading topics’ section tells the collecting cases apart

vectors_in_windowlongOptional

collecting only: traces with a vector in the window

min_vectorslongOptional

collecting only: traces with a vector the discovery run needs

total_traceslongOptional

ready only: traces with a topic in the window, Other included

labelled_fromdateOptional

ready only: the first day in the window with a labelled trace; earlier days are 0 because nothing was labelled. Omitted when the window has none

topicslist of objectsOptional

The live topics in rank order; empty unless ready

otherobjectOptional

ready only: the traces per day with no topic, or with a topic that is no longer live. Add it to the topics’ series for the project’s total per day

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
501
Not Implemented Error
503
Service Unavailable Error