Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 2.41 KB

MetricPost.md

File metadata and controls

28 lines (23 loc) · 2.41 KB

MetricPost

Properties

Name Type Description Notes
key str A unique key to reference the metric
kind str The kind of event your metric will track
name str A human-friendly name for the metric [optional]
description str Description of the metric [optional]
selector str One or more CSS selectors. Required for click metrics only. [optional]
urls [UrlPost] One or more target URLs. Required for click and pageview metrics only. [optional]
is_active bool Whether the metric is active. Set to <code>true</code> to record click or pageview metrics. Not applicable for custom metrics. [optional]
is_numeric bool 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 metrics only. [optional]
unit str The unit of measure. Applicable for numeric custom metrics only. [optional]
event_key str The event key to use in your code. Required for custom conversion/binary and custom numeric metrics only. [optional]
success_criteria str Success criteria. Required for custom numeric metrics, optional for custom conversion metrics. [optional]
tags [str] Tags for the metric [optional]
randomization_units [str] An array of randomization units allowed for this metric [optional]
unit_aggregation_type str The method by which multiple unit event values are aggregated [optional]
analysis_type str The method for analyzing metric events [optional]
percentile_value int 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>. [optional]
event_default MetricEventDefaultRep [optional]
any string name bool, date, datetime, dict, float, int, list, str, none_type any string name can be used but the value must be the correct type [optional]

[Back to Model list] [Back to API list] [Back to README]