Skip to main content
POST
Run a timeseries-shaped custom metric

Headers

x-project-id
string
required

Project ID to specify the project context

Body

application/json
metric
string
required

Metric identifier (matches id returned by GET /analytics/custom-metrics)

Example:

"sample-metric-table"

filter
object

Filter payload. Schema is metric-specific and validated by the dispatcher against the registered DTO class.

Example:

Response

metric
string
required
title
string
required
xAxis
object
required
yAxis
object
required
series
object[]
required
points
object[]
required

Time-bucketed data; keys match xAxis.key + each series.key

description
string