Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 1.4 KB

HoldoutPostRequest.md

File metadata and controls

34 lines (28 loc) · 1.4 KB

LaunchDarklyApi::HoldoutPostRequest

Properties

Name Type Description Notes
name String A human-friendly name for the holdout [optional]
key String A key that identifies the holdout [optional]
description String Description of the holdout [optional]
randomizationunit String The chosen randomization unit for the holdout base experiment [optional]
attributes Array<String> The attributes that the holdout iteration's results can be sliced by [optional]
holdoutamount String Audience allocation for the holdout [optional]
primarymetrickey String The key of the primary metric for this holdout [optional]
metrics Array<MetricInput> Details on the metrics for this experiment [optional]
prerequisiteflagkey String The key of the flag that the holdout is dependent on [optional]

Example

require 'launchdarkly_api'

instance = LaunchDarklyApi::HoldoutPostRequest.new(
  name: holdout-one-name,
  key: holdout-key,
  description: My holdout-one description,
  randomizationunit: user,
  attributes: [&quot;country&quot;,&quot;device&quot;,&quot;os&quot;],
  holdoutamount: 10,
  primarymetrickey: metric-key-123abc,
  metrics: null,
  prerequisiteflagkey: flag-key-123abc
)