Skip to content

Latest commit

 

History

History
38 lines (32 loc) · 3.46 KB

StartEnvironmentReleaseRequest.md

File metadata and controls

38 lines (32 loc) · 3.46 KB

LaunchDarklyApi::StartEnvironmentReleaseRequest

Properties

Name Type Description Notes
before_rule_id String Insert the newly created rule or phase rules before this rule. If omitted, append them to the end of the rule list. [optional]
original_variation_id String ID of the variation the release starts from. The release gradually moves traffic from it to the target variation, and moves traffic back to it if the release reverts.
target_variation_id String ID of the variation being released. The release gradually moves traffic to it from the original variation, and moves traffic back to the original variation if the release reverts.
release_plan_key String Key of an environment release plan in this environment. The plan supplies `randomizationUnit`, `phases`, `metrics`, `advancementMode`, and `cleanupBehavior`, so omit them. Omit this field to configure the release inline. [optional]
randomization_unit String Key of an existing, non-archived context kind in the project that the release randomizes on, such as `user`. Each phase's rule must include the clause `{&quot;contextKind&quot;: &quot;<unit>&quot;, &quot;attribute&quot;: &quot;kind&quot;, &quot;op&quot;: &quot;in&quot;, &quot;values&quot;: [&quot;<unit>&quot;]}`. Required unless `releasePlanKey` is set. [optional]
advancement_mode EnvironmentReleaseAdvancementMode How the release moves between phases. Required when `phases` has more than one entry; a single-phase release ignores it and may omit it. Omit when `releasePlanKey` is set. [optional]
phases Array<EnvironmentReleasePhaseInput> Ordered phases of the release. Required unless `releasePlanKey` is set. [optional]
metrics Array<EnvironmentReleaseMetricInput> Metrics shared by every phase. Omit or pass an empty array for a progressive release. Metric groups cannot be listed inline; a release plan's metric groups expand into their member metrics at start. Omit when `releasePlanKey` is set. [optional]
bypass_health_checks Array<ReleaseHealthCheckKind> Health check kinds that do not block this request. LaunchDarkly still runs and enforces every health check kind not listed here. [optional]
cleanup_behavior CleanupBehavior What happens to the release rules after the release completes. Omit for `leave_rules_in_place`. Omit when `releasePlanKey` is set. [optional]
comment String Optional comment written to the flag's audit-log entry. [optional]

Example

require 'launchdarkly_api'

instance = LaunchDarklyApi::StartEnvironmentReleaseRequest.new(
  before_rule_id: null,
  original_variation_id: null,
  target_variation_id: null,
  release_plan_key: null,
  randomization_unit: null,
  advancement_mode: null,
  phases: null,
  metrics: null,
  bypass_health_checks: [&quot;flag_evaluations_any&quot;,&quot;flag_evaluations_with_context&quot;,&quot;metric_events_any&quot;,&quot;metric_events_with_context&quot;],
  cleanup_behavior: null,
  comment: null
)