/api/metric
POST /api/metric/dataset
Changed onExecute a metric or measure-based query and stream the results.
Request body requires a definition object containing:
- expression: A metric math expression tree (leaf reference or arithmetic) Examples: [:metric {:lib/uuid "a"} 42], [:- {} [:metric {:lib/uuid "a"} 1] [:metric {:lib/uuid "b"} 2]]
- filters (optional): Per-instance filters keyed by :lib/uuid from the expression
- projections (optional): Typed projections keyed by source type and ID
post/api/metric/dataset
Request
- Base URL(relative, and the document was published on a file host, not at the API’s origin)
- AuthAPI key in header X-API-Key
Request body
Response
Successful response
Changes
- breaking
the
/////////request property's minItems was increased to3 - breaking
the
/////////request property's minItems was increased to3 - breaking
removed
subschema #2from the/request propertyoneOflist - breaking
removed
subschema #2from the/request propertyoneOflist - info
added
subschema #2to the/request propertyanyOflist - info
added
subschema #2to the/request propertyanyOflist
- breaking
- info
endpoint added
- info