Authorizations
Headers
Optional header to respect review settings for mutation endpoints.
Body
The name of the new metric, which identifies it within the system.
4 - 200
"metricName"
ratio
, mean
, event_count_custom
, event_user
, funnel
, composite
, composite_sum
, sum
, undefined
, user_warehouse
"sum"
Marks the metric as verified for internal trustworthiness.
false
Set to true to make the metric definition editable only from the Console API.
false
Array of unit types associated with the metric, such as stableID or userID.
["stableID", "userID"]
An array of event definitions used to compute the metric.
[{ "name": "event1", "type": "value" }]
List of input metrics used to calculate the new metric for composite types.
[]
A description of the new metric, providing context and purpose.
1000
Indicates the desired change direction for the metric. Use "increase" for positive changes and "decrease" for negative changes.
increase
, decrease
"increase"
Tags associated with the metric for categorization and searchability.
["tag1", "tag2"]
Indicates whether the metric is permanent and should not be deleted.
false
Time window for the metric rollup. Specify "custom" for a customized time window.
"custom"
Custom time window start date in days since exposure.
1
Custom time window end date in days since exposure.
1
List of events used to create funnel metrics.
Specifies whether to count events or distinct users for the funnel metric.
events
, users
Defines warehouse native metrics for advanced configurations.
The team associated with the metric, applicable for enterprise environments.
The team ID associated with the metric, applicable for enterprise environments.
Skips persisting the metric (used to validate that inputs are correct)