Skip to content

Latest commit

 

History

History
38 lines (32 loc) · 2.1 KB

File metadata and controls

38 lines (32 loc) · 2.1 KB

LaunchDarklyApi::IterationInput

Properties

Name Type Description Notes
hypothesis String The expected outcome of this experiment
can_reshuffle_traffic Boolean Whether to allow the experiment to reassign traffic to different variations when you increase or decrease the traffic in your experiment audience (true) or keep all traffic assigned to its initial variation (false). Defaults to true. [optional]
metrics Array<MetricInput>
primary_single_metric_key String The key of the primary metric for this experiment. Either <code>primarySingleMetricKey</code> or <code>primaryFunnelKey</code> must be present. [optional]
primary_funnel_key String The key of the primary funnel group for this experiment. Either <code>primarySingleMetricKey</code> or <code>primaryFunnelKey</code> must be present. [optional]
treatments Array<TreatmentInput>
flags Hash<String, FlagInput>
randomization_unit String The unit of randomization for this iteration. Defaults to user. [optional]
reallocation_frequency_millis Integer The cadence (in milliseconds) to update the allocation. [optional]
covariate_id String The ID of the covariate CSV [optional]
attributes Array<String> The attributes that this iteration's results can be sliced by [optional]

Example

require 'launchdarkly_api'

instance = LaunchDarklyApi::IterationInput.new(
  hypothesis: Example hypothesis, the new button placement will increase conversion,
  can_reshuffle_traffic: true,
  metrics: null,
  primary_single_metric_key: metric-key-123abc,
  primary_funnel_key: metric-group-key-123abc,
  treatments: null,
  flags: null,
  randomization_unit: user,
  reallocation_frequency_millis: 3600000,
  covariate_id: null,
  attributes: [&quot;country&quot;,&quot;device&quot;,&quot;os&quot;]
)