Class ExperimentsPatchBanditV2RequestDataAttributes

The attributes to change. Omitted attributes are unchanged. Which ones can change depends on the bandit's status.

Hierarchy

  • ExperimentsPatchBanditV2RequestDataAttributes

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. null restores the default of 3600 (1 hour). Only a draft can change it.

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.

exposureSqlModelId?: string

The exposure SQL model the bandit reads its exposures from. Only a draft can change it.

lookbackSeconds?: number

How far back each refresh reads observations, in seconds. null restores the default of 2592000 (30 days). Only a draft can change it.

metricId?: string

The metric the bandit optimizes. It must read a warehouse metric source. Only a draft can change it.

name?: string

The bandit's name.

refreshScheduleId?: string

The schedule the bandit refreshes on.

scheduledEndAt?: Date

When the bandit ends and serves its fallback. Needs a fallback variant. null removes the scheduled end.

subjectTypeId?: string

The subject type the bandit randomizes and measures by. Only a draft can change it.

tags?: string[]

Replaces the bandit's tags and keeps its teams. Allowed in any status.

teams?: string[]

Replaces the bandit's teams and keeps its tags. Allowed in any status.

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

warmupSeconds?: number

How 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