Name | Type | Description | Notes |
---|---|---|---|
Key | string | A unique key to reference the metric | |
Name | Pointer to string | A human-friendly name for the metric | [optional] |
Description | Pointer to string | Description of the metric | [optional] |
Kind | string | The kind of event your metric will track | |
Selector | Pointer to string | One or more CSS selectors. Required for click metrics only. | [optional] |
Urls | Pointer to []UrlPost | One or more target URLs. Required for click and pageview metrics only. | [optional] |
IsActive | Pointer to bool | Whether the metric is active. Set to <code>true</code> to record click or pageview metrics. Not applicable for custom metrics. | [optional] |
IsNumeric | Pointer to 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 | Pointer to string | The unit of measure. Applicable for numeric custom metrics only. | [optional] |
EventKey | Pointer to string | The event name to use in your code. Required for custom metrics only. | [optional] |
SuccessCriteria | Pointer to string | Success criteria. Required for custom numeric metrics, optional for custom conversion metrics. | [optional] |
Tags | Pointer to []string | Tags for the metric | [optional] |
RandomizationUnits | Pointer to []string | An array of randomization units allowed for this metric | [optional] |
func NewMetricPost(key string, kind string, ) *MetricPost
NewMetricPost instantiates a new MetricPost object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewMetricPostWithDefaults() *MetricPost
NewMetricPostWithDefaults instantiates a new MetricPost object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *MetricPost) GetKey() string
GetKey returns the Key field if non-nil, zero value otherwise.
func (o *MetricPost) GetKeyOk() (*string, bool)
GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *MetricPost) SetKey(v string)
SetKey sets Key field to given value.
func (o *MetricPost) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *MetricPost) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *MetricPost) SetName(v string)
SetName sets Name field to given value.
func (o *MetricPost) HasName() bool
HasName returns a boolean if a field has been set.
func (o *MetricPost) GetDescription() string
GetDescription returns the Description field if non-nil, zero value otherwise.
func (o *MetricPost) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *MetricPost) SetDescription(v string)
SetDescription sets Description field to given value.
func (o *MetricPost) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *MetricPost) GetKind() string
GetKind returns the Kind field if non-nil, zero value otherwise.
func (o *MetricPost) GetKindOk() (*string, bool)
GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *MetricPost) SetKind(v string)
SetKind sets Kind field to given value.
func (o *MetricPost) GetSelector() string
GetSelector returns the Selector field if non-nil, zero value otherwise.
func (o *MetricPost) GetSelectorOk() (*string, bool)
GetSelectorOk returns a tuple with the Selector field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *MetricPost) SetSelector(v string)
SetSelector sets Selector field to given value.
func (o *MetricPost) HasSelector() bool
HasSelector returns a boolean if a field has been set.
func (o *MetricPost) GetUrls() []UrlPost
GetUrls returns the Urls field if non-nil, zero value otherwise.
func (o *MetricPost) GetUrlsOk() (*[]UrlPost, bool)
GetUrlsOk returns a tuple with the Urls field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *MetricPost) SetUrls(v []UrlPost)
SetUrls sets Urls field to given value.
func (o *MetricPost) HasUrls() bool
HasUrls returns a boolean if a field has been set.
func (o *MetricPost) GetIsActive() bool
GetIsActive returns the IsActive field if non-nil, zero value otherwise.
func (o *MetricPost) GetIsActiveOk() (*bool, bool)
GetIsActiveOk returns a tuple with the IsActive field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *MetricPost) SetIsActive(v bool)
SetIsActive sets IsActive field to given value.
func (o *MetricPost) HasIsActive() bool
HasIsActive returns a boolean if a field has been set.
func (o *MetricPost) GetIsNumeric() bool
GetIsNumeric returns the IsNumeric field if non-nil, zero value otherwise.
func (o *MetricPost) GetIsNumericOk() (*bool, bool)
GetIsNumericOk returns a tuple with the IsNumeric field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *MetricPost) SetIsNumeric(v bool)
SetIsNumeric sets IsNumeric field to given value.
func (o *MetricPost) HasIsNumeric() bool
HasIsNumeric returns a boolean if a field has been set.
func (o *MetricPost) GetUnit() string
GetUnit returns the Unit field if non-nil, zero value otherwise.
func (o *MetricPost) GetUnitOk() (*string, bool)
GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *MetricPost) SetUnit(v string)
SetUnit sets Unit field to given value.
func (o *MetricPost) HasUnit() bool
HasUnit returns a boolean if a field has been set.
func (o *MetricPost) GetEventKey() string
GetEventKey returns the EventKey field if non-nil, zero value otherwise.
func (o *MetricPost) GetEventKeyOk() (*string, bool)
GetEventKeyOk returns a tuple with the EventKey field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *MetricPost) SetEventKey(v string)
SetEventKey sets EventKey field to given value.
func (o *MetricPost) HasEventKey() bool
HasEventKey returns a boolean if a field has been set.
func (o *MetricPost) GetSuccessCriteria() string
GetSuccessCriteria returns the SuccessCriteria field if non-nil, zero value otherwise.
func (o *MetricPost) GetSuccessCriteriaOk() (*string, bool)
GetSuccessCriteriaOk returns a tuple with the SuccessCriteria field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *MetricPost) SetSuccessCriteria(v string)
SetSuccessCriteria sets SuccessCriteria field to given value.
func (o *MetricPost) HasSuccessCriteria() bool
HasSuccessCriteria returns a boolean if a field has been set.
func (o *MetricPost) GetTags() []string
GetTags returns the Tags field if non-nil, zero value otherwise.
func (o *MetricPost) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *MetricPost) SetTags(v []string)
SetTags sets Tags field to given value.
func (o *MetricPost) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *MetricPost) GetRandomizationUnits() []string
GetRandomizationUnits returns the RandomizationUnits field if non-nil, zero value otherwise.
func (o *MetricPost) GetRandomizationUnitsOk() (*[]string, bool)
GetRandomizationUnitsOk returns a tuple with the RandomizationUnits field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *MetricPost) SetRandomizationUnits(v []string)
SetRandomizationUnits sets RandomizationUnits field to given value.
func (o *MetricPost) HasRandomizationUnits() bool
HasRandomizationUnits returns a boolean if a field has been set.