Class ExperimentsBanditV2DTODataAttributes

A bandit's setup, the policy it serves, and its latest refresh.

Hierarchy

  • ExperimentsBanditV2DTODataAttributes

Constructors

Properties

activePolicy: null | ExperimentsBanditPolicyV2

The policy the bandit serves. null until the bandit starts.

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.

The prior the bandit's estimates start from.

configVersion: number

The version of the bandit's configuration. Each saved change adds one.

createdAt: Date

When the bandit was created.

datadogFlagConfiguration?: ExperimentsBanditFlagConfigurationV2

The flag rule the bandit serves through. Absent until a draft is added to a flag. Also absent when the caller lacks feature flag or environment read permissions, in which case meta.warnings includes datadog_flag_configuration_omitted.

description: string

The bandit's description.

endedAt: null | Date

When the bandit was stopped or reached its scheduled end. null while it hasn't ended.

exposureSqlModelId: null | string

The exposure SQL model the bandit reads its exposures from. null until set on a draft.

latestRefresh: null | ExperimentsBanditRefreshV2

The most recently started refresh. null until one starts.

lookbackSeconds: number

How far back each refresh reads observations, in seconds.

metricId: null | string

The metric the bandit optimizes. null until set on a draft.

name: string

The bandit's name.

optimalVariantKey: null | string

The key of the arm most likely to be best, when one arm leads and the bandit is outside warmup. null otherwise. Matches Get bandit results.

optimalVariantUnavailableReason?: ExperimentsBanditOptimalVariantUnavailableReason

Why no optimal variant is reported. Absent when one is, or when the cause isn't known.

refreshScheduleId: null | string

The schedule the bandit refreshes on.

scheduledEndAt: null | Date

When the bandit ends and serves its fallback. null when it has no scheduled end.

Why the scheduled end couldn't run. It isn't retried until the end date or fallback changes. Absent when there's no failure.

startedAt: null | Date

When the bandit started. null until it starts.

The bandit's status. STOPPED means the bandit was stopped and serves the variant chosen then. COMPLETED means it reached its scheduled end and serves its fallback.

subjectTypeId: null | string

The subject type the bandit randomizes and measures by. null until set on a draft.

tags: string[]

The bandit's tags, without team tags.

teams: string[]

Handles of the teams that own the bandit.

updatedAt: Date

When the bandit was last changed.

The flag variants the bandit uses: its arms in arm order, then its fallback when the fallback isn't an arm.

warmupSeconds: null | number

How long the bandit serves its arms equally after it starts, in seconds. null when it has no warmup.

Generated using TypeDoc