You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One or more target URLs. Required for click and pageview metrics only.
[optional]
is_numeric
Boolean
Whether to track numeric changes in value against a baseline (<code>true</code>) or to track a conversion when an end user takes an action (<code>false</code>). Required for custom and trace metrics only.
[optional]
unit
String
The unit of measure. Applicable for numeric custom and trace metrics only.
[optional]
event_key
String
The event key to use in your code. Required for custom conversion/binary and custom numeric metrics only.
[optional]
success_criteria
String
Success criteria. Required for custom and trace numeric metrics, optional for custom and trace conversion metrics.
[optional]
tags
Array<String>
Tags for the metric
[optional]
randomization_units
Array<String>
Deprecated, use <code>analysisUnits</code> instead.
[optional]
analysis_units
Array<String>
An array of analysis units allowed for this metric.
[optional]
maintainer_id
String
The ID of the member who maintains this metric
[optional]
unit_aggregation_type
String
The method by which multiple unit event values are aggregated
[optional]
analysis_type
String
The method for analyzing metric events
[optional]
percentile_value
Integer
The percentile for the analysis method. An integer denoting the target percentile between 0 and 100. Required when <code>analysisType</code> is <code>percentile</code>.
Not yet implemented - The start of the measurement window, in milliseconds relative to the unit's first exposure to a flag variation
[optional]
window_end_offset
Integer
Not yet implemented - The end of the measurement window, in milliseconds relative to the unit's first exposure to a flag variation
[optional]
winsor_lower_percentile
Float
Lower winsorization percentile, expressed as a percent in the open interval (0, 100). When both bounds are set, defines a two-sided clamp range. Otherwise lower-only winsorization.
[optional]
winsor_upper_percentile
Float
Upper winsorization percentile, expressed as a percent in the open interval (0, 100). When both bounds are set, must be greater than winsorLowerPercentile.
[optional]
winsor_exclude_imputed
Boolean
Deprecated and ignored. Use winsorIncludeImputed instead.
[optional]
winsor_include_imputed
Boolean
When true, the percentile bound calculation includes imputed zeros. Only meaningful when at least one bound is set and the metric includes units that didn't send events.
[optional]
trace_query
String
The trace query to use for the metric. Required for trace metrics.
[optional]
trace_value_location
String
The location in the trace to use for numeric values. Required for numeric trace metrics.
[optional]
unit_aggregation_field
String
The warehouse column to use for counting distinct values. Required when the unitAggregationType is count_distinct.