Skip to content
SegmentStream/ Docs

Loading documentation…

↑ ↓ to navigate  ↵ to open  Esc to close
Website Console
Section menu

segmentstream ontology query-metrics

Query metrics of the deployed ontology from a JSON document.

Usage

Command syntax
segmentstream ontology query-metrics [OPTIONS] [ENTITY]

Query metrics of the deployed ontology from a JSON document.  The query names metrics as entity.metric, or a metric of the model by its bare name, and dimensions as entity.property. With ENTITY, it queries that entity with names relative to it. It is sent as written; the platform checks it.  Example, with query.json: {"metrics": ["order.orders"], "dimensions": ["customer.segment"], "orderBy": [{"metric": "order.orders", "direction": "desc"}]} segmentstream ontology query-metrics --query query.json --output csv

Options

--query FILE|-
Read the query JSON from a file or stdin with '-' [required]
--output [table|json|csv]
[default: table]
--workspace TEXT
Override the linked workspace
--api-url TEXT
SegmentStream control-plane origin
--organization ORG-ID
Organization for this command
--help
Show this message and exit.