Semantic Model

Every command below also accepts the global options.

Query semantic model

agentserve semantic-model query [options]

Query Semantic Model (OAuth login or personal API key required)

Options

OptionRequiredDescription
--source <value>NoWhich model to query. Omit it to query the model you read in the app: your draft while draft mode is on, otherwise the published model. Accepted values: published, draft.
--measures <json|@file>YesMeasures to compute. (JSON, or @path / @- to read a file or stdin).
--dimensions <json|@file>NoAttributes to group by. (JSON, or @path / @- to read a file or stdin).
--where <json|@file>NoEquality conditions keyed by entity.attribute, all of which must hold. (JSON, or @path / @- to read a file or stdin).
--sort <json|@file>NoSort order of the result rows. (JSON, or @path / @- to read a file or stdin).
--limit <value>NoMost rows to return. Defaults to 100.