v12

latestOpenAPI 3.1.0AGPL-3.0raw.githubusercontent.com2026-05-286377631.6 MB
/api/metric

POST /api/metric/dataset

Execute 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 body

Response

Successful response

row_countinteger required

value must be an integer greater or equal to than zero.

status'completed' | 'completed' required