Create metric
Create a new metric in the specified project. The expected POST body differs depending on the specified kind property.
Create a new metric in the specified project. The expected POST body differs depending on the specified kind property.
A human-friendly name for the metric
Whether to track numeric changes in value against a baseline (true) or to track a conversion when an end user takes an action (false). Required for custom and trace metrics only.
The event key to use in your code. Required for custom conversion/binary and custom numeric metrics only.
The percentile for the analysis method. An integer denoting the target percentile between 0 and 100. Required when analysisType is percentile.
Not yet implemented - The start of the measurement window, in milliseconds relative to the unit’s first exposure to a flag variation
Not yet implemented - The end of the measurement window, in milliseconds relative to the unit’s first exposure to a flag variation
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.
Upper winsorization percentile, expressed as a percent in the open interval (0, 100). When both bounds are set, must be greater than winsorLowerPercentile.
Deprecated, use analysisUnits instead.
A human-friendly name for the metric
For custom and trace metrics, whether to track numeric changes in value against a baseline (true) or to track a conversion when an end user takes an action (false).
The percentile for the analysis method. An integer denoting the target percentile between 0 and 100. Required when analysisType is percentile.
Timestamp of most recent data for this metric, at one-hour fidelity
Not yet implemented - The start of the measurement window, in milliseconds relative to the unit’s first exposure to a flag variation
Not yet implemented - The end of the measurement window, in milliseconds relative to the unit’s first exposure to a flag variation
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.
Upper winsorization percentile, expressed as a percent in the open interval (0, 100). When both bounds are set, must be greater than winsorLowerPercentile.
Deprecated, use analysisUnits instead.