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
| Option | Required | Description |
|---|---|---|
--source <value> | No | Which 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> | Yes | Measures to compute. (JSON, or @path / @- to read a file or stdin). |
--dimensions <json|@file> | No | Attributes to group by. (JSON, or @path / @- to read a file or stdin). |
--where <json|@file> | No | Equality conditions keyed by entity.attribute, all of which must hold. (JSON, or @path / @- to read a file or stdin). |
--sort <json|@file> | No | Sort order of the result rows. (JSON, or @path / @- to read a file or stdin). |
--limit <value> | No | Most rows to return. Defaults to 100. |