System analytics queries

Execute free-form analytics SQL

Runs read-only SQL bounded to the caller's workspace. Supply project_id to restrict traces, spans, feedback scores and trace threads to one project, or omit it to cover the whole workspace. Experiments, experiment items and dataset items always cover the whole workspace.

post/v1/internal/analytics-queries

Request body

querystring required

Read-only ClickHouse SQL. Must return exactly one column named result produced via toJSONString(...)

project_idstring uuid

Restrict query to this project. Omit to query the whole workspace.

Response

Query results

resultsJsonNode[]

Changes

Changed in 1 of the 70 revisions of this API.1