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. Defaults to 3600 (1 hour).
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. Defaults to empty.
Optional exposureThe exposure SQL model the bandit reads its exposures from.
Optional lookbackHow far back each refresh reads observations, in seconds. Defaults to 2592000 (30 days).
Optional metricThe metric the bandit optimizes. It must read a warehouse metric source.
The bandit's name.
Optional refreshThe schedule the bandit refreshes on. Defaults to the organization's default schedule.
Optional scheduledWhen the bandit ends and serves its fallback. Needs a fallback variant.
Optional subjectThe subject type the bandit randomizes and measures by.
Optional tagsTags for the bandit. The flag's tags are added too.
Optional teamsHandles of the teams that own the bandit.
Optional variantsThe flag variants the bandit uses. Needs datadog_flag_configuration. The server fills in each variant's key and name from the flag.
Optional warmupHow long the bandit serves its arms equally after it starts, in seconds. Defaults to no warmup.
Generated using TypeDoc
The new draft's setup. Only
nameis required. Whether the draft is ready to run is checked when it starts.