You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
UUID
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
UUID
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
str
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
str
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 `{"contextKind": "<unit>", "attribute": "kind", "op": "in", "values": ["<unit>"]}`. Required unless `releasePlanKey` is set.
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.
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.
What happens to the release rules after the release completes. Omit for `leave_rules_in_place`. Omit when `releasePlanKey` is set.
[optional]
comment
str
Optional comment written to the flag's audit-log entry.
[optional]
Example
fromlaunchdarkly_api.models.start_environment_release_requestimportStartEnvironmentReleaseRequest# TODO update the JSON string belowjson="{}"# create an instance of StartEnvironmentReleaseRequest from a JSON stringstart_environment_release_request_instance=StartEnvironmentReleaseRequest.from_json(json)
# print the JSON string representation of the objectprint(StartEnvironmentReleaseRequest.to_json())
# convert the object into a dictstart_environment_release_request_dict=start_environment_release_request_instance.to_dict()
# create an instance of StartEnvironmentReleaseRequest from a dictstart_environment_release_request_from_dict=StartEnvironmentReleaseRequest.from_dict(start_environment_release_request_dict)