LaunchDarklyApi::GuardedReleaseConfig
Name
Type
Description
Notes
rollout_context_kind_key
String
Context kind key to use as the randomization unit for the rollout
[optional]
min_sample_size
Integer
The minimum number of samples required to make a decision
[optional]
rollback_on_regression
Boolean
Whether to roll back on regression
[optional]
metric_keys
Array<String>
List of metric keys
[optional]
metric_group_keys
Array<String>
List of metric group keys
[optional]
stages
Array<ReleasePolicyStage>
List of stages. At most 10 stages by default; the server enforces the per-account limit, which is never more than 20.
[optional]
require 'launchdarkly_api'
instance = LaunchDarklyApi ::GuardedReleaseConfig . new (
rollout_context_kind_key : user ,
min_sample_size : 100 ,
rollback_on_regression : true ,
metric_keys : [ " ; http -errors " ; , " ; latency " ; ] ,
metric_group_keys : [ " ; frontend -metrics " ; , " ; backend -metrics " ; ] ,
stages : [ { " ; allocation " ; :25000 , " ; durationMillis " ; :60000 } , { " ; allocation " ; :50000 , " ; durationMillis " ; :60000 } ]
)