Class: DatadogAPIClient::V2::ExperimentsCreateExperimentV2RequestDataAttributesVariantsItems

Inherits:
Object
  • Object
show all
Includes:
BaseGenericModel
Defined in:
lib/datadog_api_client/v2/models/experiments_create_experiment_v2_request_data_attributes_variants_items.rb

Overview

Variant selected for an experiment, with its identity and traffic allocation.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_properties ⇒ Object

Returns the value of attribute additional_properties.



42
43
44
# File 'lib/datadog_api_client/v2/models/experiments_create_experiment_v2_request_data_attributes_variants_items.rb', line 42

def additional_properties
  @additional_properties
end

#feature_flag_variant_id ⇒ Object

Stable backing flag variant ID. Required for Datadog-backed experiments and omitted for Warehouse-only experiments.



25
26
27
# File 'lib/datadog_api_client/v2/models/experiments_create_experiment_v2_request_data_attributes_variants_items.rb', line 25

def feature_flag_variant_id
  @feature_flag_variant_id
end

#is_active ⇒ Object

Whether this variant participates in the experiment. Responses always include this field. On writes an included variant defaults to active; omit its row to remove or unselect it. Explicit false supports sending an unchanged response back.



28
29
30
# File 'lib/datadog_api_client/v2/models/experiments_create_experiment_v2_request_data_attributes_variants_items.rb', line 28

def is_active
  @is_active
end

#is_control ⇒ Object

Whether this is the single control variant.



31
32
33
# File 'lib/datadog_api_client/v2/models/experiments_create_experiment_v2_request_data_attributes_variants_items.rb', line 31

def is_control
  @is_control
end

#key ⇒ Object

Assignment value. Datadog flag variant keys are server-owned.



34
35
36
# File 'lib/datadog_api_client/v2/models/experiments_create_experiment_v2_request_data_attributes_variants_items.rb', line 34

def key
  @key
end

#name ⇒ Object

Display name. Datadog flag variant names are server-owned.



37
38
39
# File 'lib/datadog_api_client/v2/models/experiments_create_experiment_v2_request_data_attributes_variants_items.rb', line 37

def name
  @name
end

#weight ⇒ Object

Traffic allocation percentage. Existing variant weights cannot change through the public API after the experiment starts.



40
41
42
# File 'lib/datadog_api_client/v2/models/experiments_create_experiment_v2_request_data_attributes_variants_items.rb', line 40

def weight
  @weight
end