Optional additionalA container for additional, undeclared properties. This is a holder for any undeclared properties as specified with the 'additionalProperties' keyword in the OAS document.
Optional aggregationThe aggregation window: how long after an exposure the bandit keeps counting its reward, in seconds. null restores the default of 3600 (1 hour). Only a draft can change it.
Optional bayesianThe prior the bandit's estimates start from, in the metric's units. Omitted fields keep their current values, or their defaults on create. A change takes effect on the next refresh.
Optional datadogThe flag and environment the bandit serves on, and who it serves there. The server chooses the rule's allocation_key. On create, feature_flag_id and environment_id are required, and null is the same as omitting it. On update, omitted fields are unchanged, and null takes a draft off its flag, which also clears its variants and scheduled end. Moving a draft to another flag clears its variants unless the request sets them. Only a draft can change it.
Optional descriptionThe bandit's description.
Optional exposureThe exposure SQL model the bandit reads its exposures from. Only a draft can change it.
Optional lookbackHow far back each refresh reads observations, in seconds. null restores the default of 2592000 (30 days). Only a draft can change it.
Optional metricThe metric the bandit optimizes. It must read a warehouse metric source. Only a draft can change it.
Optional nameThe bandit's name.
Optional refreshThe schedule the bandit refreshes on.
Optional scheduledWhen the bandit ends and serves its fallback. Needs a fallback variant. null removes the scheduled end.
Optional subjectThe subject type the bandit randomizes and measures by. Only a draft can change it.
Optional tagsReplaces the bandit's tags and keeps its teams. Allowed in any status.
Optional teamsReplaces the bandit's teams and keeps its tags. Allowed in any status.
Optional variantsReplaces the variants the bandit uses. Once the bandit has started, only is_fallback can change, so send the current arms with a different is_fallback. Only a draft can have an empty list.
Optional warmupHow long the bandit serves its arms equally after it starts, in seconds. null removes the warmup. Only a draft can change it.
Generated using TypeDoc
The attributes to change. Omitted attributes are unchanged. Which ones can change depends on the bandit's status.