references/metric-configuration.md · 120000
y array to detach all shared metrics.
To promote a one-off inline metric into a reusable shared metric:
- Call
experiment-saved-metrics-createwith the inline metric'squery(theExperimentMetricobject) and leave outquery.uuid. The API assigns the shared metric a new uuid and ignores one you send. - In a single
experiment-updatecall, attach the new metric throughsaved_metrics_idsas above, and resendmetrics(ormetrics_secondary) without the inline metric. If you leave the inline metric in place, the experiment measures the same thing twice.
Property filters
Any EventsNode can include property filters to narrow which events count.
Filters never change aggregation — for that, use math / math_property.
{
"kind": "EventsNode",
"event": "purchase_completed",
"properties": [
{
"key": "plan",
"value": ["pro", "enterprise"],
"operator": "exact",
"type": "event"
}
]
}