Class ExperimentsCreateBanditV2RequestDataAttributes

The new draft's setup. Only name is required. Whether the draft is ready to run is checked when it starts.

Hierarchy

  • ExperimentsCreateBanditV2RequestDataAttributes

Constructors

Properties

additionalProperties?: {
    [key: string]: any;
}

A container for additional, undeclared properties. This is a holder for any undeclared properties as specified with the 'additionalProperties' keyword in the OAS document.

Type declaration

  • [key: string]: any
aggregationWindowSeconds?: number

The aggregation window: how long after an exposure the bandit keeps counting its reward, in seconds. Defaults to 3600 (1 hour).

The 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.

The 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.

description?: string

The bandit's description. Defaults to empty.

exposureSqlModelId?: string

The exposure SQL model the bandit reads its exposures from.

lookbackSeconds?: number

How far back each refresh reads observations, in seconds. Defaults to 2592000 (30 days).

metricId?: string

The metric the bandit optimizes. It must read a warehouse metric source.

name: string

The bandit's name.

refreshScheduleId?: string

The schedule the bandit refreshes on. Defaults to the organization's default schedule.

scheduledEndAt?: Date

When the bandit ends and serves its fallback. Needs a fallback variant.

subjectTypeId?: string

The subject type the bandit randomizes and measures by.

tags?: string[]

Tags for the bandit. The flag's tags are added too.

teams?: string[]

Handles of the teams that own the bandit.

The flag variants the bandit uses. Needs datadog_flag_configuration. The server fills in each variant's key and name from the flag.

warmupSeconds?: number

How long the bandit serves its arms equally after it starts, in seconds. Defaults to no warmup.

Generated using TypeDoc