Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

OnlineAbDefinition

import type { OnlineAbDefinition } from "https://aws-api.deno.dev/v0.3/services/evidently.ts?docs=full";

A structure that contains the configuration of which variation to use as the "control" version. The "control" version is used for comparison with other variations. This structure also specifies how much experiment traffic is allocated to each variation.

interface OnlineAbDefinition {
controlTreatmentName?: string | null;
treatmentWeights?: {
[key: string]: number | null | undefined;
}
| null;
}

§Properties

§
controlTreatmentName?: string | null
[src]

The name of the variation that is the default variation that the other variations are compared to.

§
treatmentWeights?: {
[key: string]: number | null | undefined;
}
| null
[src]

A set of key-value pairs. The keys are variation names, and the values are the portion of experiment traffic to be assigned to that variation. The traffic portion is specified in thousandths of a percent, so 20,000 for a variation would allocate 20% of the experiment traffic to that variation.