6.1 KiB
ExperimentCreateBody
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| ExposureEvent | Pointer to string | ExposureEvent is the event that marks a subject as enrolled — the analysis denominator — defaulting to the SDK's $feature_flag_called marker. | [optional] |
| FlagKey | Pointer to string | FlagKey names the assignment flag this experiment writes, defaulting to exp_<id>. It must be a slug. | [optional] |
| Id | string | ID is the experiment's slug, claimed once per project. It must match [A-Za-z0-9][A-Za-z0-9._-]{0,127}. | |
| MetricEvent | string | MetricEvent is the event that counts as a conversion — the analysis numerator. | |
| Name | Pointer to string | Name is free text for a reader; the id is what addresses the experiment. | [optional] |
| SubjectKind | Pointer to string | SubjectKind is the unit assigned and measured: user (the default), org, session or audience. | [optional] |
| Variants | []ExperimentArm | Arms are the arms, at least two. Weights that are all zero become an even split; otherwise they must sum to 100, and at most one arm may be flagged control. |
Methods
NewExperimentCreateBody
func NewExperimentCreateBody(id string, metricEvent string, variants []ExperimentArm, ) *ExperimentCreateBody
NewExperimentCreateBody instantiates a new ExperimentCreateBody 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
NewExperimentCreateBodyWithDefaults
func NewExperimentCreateBodyWithDefaults() *ExperimentCreateBody
NewExperimentCreateBodyWithDefaults instantiates a new ExperimentCreateBody 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
GetExposureEvent
func (o *ExperimentCreateBody) GetExposureEvent() string
GetExposureEvent returns the ExposureEvent field if non-nil, zero value otherwise.
GetExposureEventOk
func (o *ExperimentCreateBody) GetExposureEventOk() (*string, bool)
GetExposureEventOk returns a tuple with the ExposureEvent field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetExposureEvent
func (o *ExperimentCreateBody) SetExposureEvent(v string)
SetExposureEvent sets ExposureEvent field to given value.
HasExposureEvent
func (o *ExperimentCreateBody) HasExposureEvent() bool
HasExposureEvent returns a boolean if a field has been set.
GetFlagKey
func (o *ExperimentCreateBody) GetFlagKey() string
GetFlagKey returns the FlagKey field if non-nil, zero value otherwise.
GetFlagKeyOk
func (o *ExperimentCreateBody) GetFlagKeyOk() (*string, bool)
GetFlagKeyOk returns a tuple with the FlagKey field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetFlagKey
func (o *ExperimentCreateBody) SetFlagKey(v string)
SetFlagKey sets FlagKey field to given value.
HasFlagKey
func (o *ExperimentCreateBody) HasFlagKey() bool
HasFlagKey returns a boolean if a field has been set.
GetId
func (o *ExperimentCreateBody) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
GetIdOk
func (o *ExperimentCreateBody) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetId
func (o *ExperimentCreateBody) SetId(v string)
SetId sets Id field to given value.
GetMetricEvent
func (o *ExperimentCreateBody) GetMetricEvent() string
GetMetricEvent returns the MetricEvent field if non-nil, zero value otherwise.
GetMetricEventOk
func (o *ExperimentCreateBody) GetMetricEventOk() (*string, bool)
GetMetricEventOk returns a tuple with the MetricEvent field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetMetricEvent
func (o *ExperimentCreateBody) SetMetricEvent(v string)
SetMetricEvent sets MetricEvent field to given value.
GetName
func (o *ExperimentCreateBody) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
GetNameOk
func (o *ExperimentCreateBody) 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.
SetName
func (o *ExperimentCreateBody) SetName(v string)
SetName sets Name field to given value.
HasName
func (o *ExperimentCreateBody) HasName() bool
HasName returns a boolean if a field has been set.
GetSubjectKind
func (o *ExperimentCreateBody) GetSubjectKind() string
GetSubjectKind returns the SubjectKind field if non-nil, zero value otherwise.
GetSubjectKindOk
func (o *ExperimentCreateBody) GetSubjectKindOk() (*string, bool)
GetSubjectKindOk returns a tuple with the SubjectKind field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetSubjectKind
func (o *ExperimentCreateBody) SetSubjectKind(v string)
SetSubjectKind sets SubjectKind field to given value.
HasSubjectKind
func (o *ExperimentCreateBody) HasSubjectKind() bool
HasSubjectKind returns a boolean if a field has been set.
GetVariants
func (o *ExperimentCreateBody) GetVariants() []ExperimentArm
GetVariants returns the Variants field if non-nil, zero value otherwise.
GetVariantsOk
func (o *ExperimentCreateBody) GetVariantsOk() (*[]ExperimentArm, bool)
GetVariantsOk returns a tuple with the Variants field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetVariants
func (o *ExperimentCreateBody) SetVariants(v []ExperimentArm)
SetVariants sets Variants field to given value.