Skip to main content
id
string
required
name
string
required
description
string
required
Maximum string length: 10000
owner
string
required

The userId of the owner (or raw owner name/email for legacy records)

projects
string[]
required
tags
string[]
required
datasource
string
required
metricType
enum<string>
required
Available options:
proportion,
retention,
mean,
quantile,
ratio,
dailyParticipation
numerator
object
required
inverse
boolean
required

Set to true for things like Bounce Rate, where you want the metric to decrease

cappingSettings
object
required

Controls how outliers are handled

windowSettings
object
required

Controls the conversion window for the metric

priorSettings
object
required

Controls the bayesian prior for the metric

regressionAdjustmentSettings
object
required

Controls the regression adjustment (CUPED) settings for the metric

riskThresholdSuccess
number
required
riskThresholdDanger
number
required
minPercentChange
number
required
maxPercentChange
number
required
minSampleSize
number
required
targetMDE
number
required
managedBy
enum<string>
required

Where this fact metric must be managed from. If not set (empty string), it can be managed from anywhere.

Available options:
,
api,
admin
dateCreated
string<date-time>
required
dateUpdated
string<date-time>
required
ownerEmail
string

The email address of the owner, when the owner can be resolved to a known user.

denominator
object
quantileSettings
object

Controls the settings for quantile metrics (mandatory if metricType is "quantile")

displayAsPercentage
boolean

If true and the metric is a ratio metric, variation means will be displayed as a percentage

archived
boolean
metricAutoSlices
string[]

Array of slice column names that will be automatically included in metric analysis. This is an enterprise feature.