amazonka-evidently-2.0: Amazon CloudWatch Evidently SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Evidently.Types.OnlineAbDefinition

Description

 
Synopsis

Documentation

data OnlineAbDefinition Source #

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.

See: newOnlineAbDefinition smart constructor.

Constructors

OnlineAbDefinition' 

Fields

  • controlTreatmentName :: Maybe Text

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

  • treatmentWeights :: Maybe (HashMap Text Natural)

    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.

Instances

Instances details
FromJSON OnlineAbDefinition Source # 
Instance details

Defined in Amazonka.Evidently.Types.OnlineAbDefinition

Generic OnlineAbDefinition Source # 
Instance details

Defined in Amazonka.Evidently.Types.OnlineAbDefinition

Associated Types

type Rep OnlineAbDefinition :: Type -> Type #

Read OnlineAbDefinition Source # 
Instance details

Defined in Amazonka.Evidently.Types.OnlineAbDefinition

Show OnlineAbDefinition Source # 
Instance details

Defined in Amazonka.Evidently.Types.OnlineAbDefinition

NFData OnlineAbDefinition Source # 
Instance details

Defined in Amazonka.Evidently.Types.OnlineAbDefinition

Methods

rnf :: OnlineAbDefinition -> () #

Eq OnlineAbDefinition Source # 
Instance details

Defined in Amazonka.Evidently.Types.OnlineAbDefinition

Hashable OnlineAbDefinition Source # 
Instance details

Defined in Amazonka.Evidently.Types.OnlineAbDefinition

type Rep OnlineAbDefinition Source # 
Instance details

Defined in Amazonka.Evidently.Types.OnlineAbDefinition

type Rep OnlineAbDefinition = D1 ('MetaData "OnlineAbDefinition" "Amazonka.Evidently.Types.OnlineAbDefinition" "amazonka-evidently-2.0-Es2fJk98R0DAUPYaVkZSYC" 'False) (C1 ('MetaCons "OnlineAbDefinition'" 'PrefixI 'True) (S1 ('MetaSel ('Just "controlTreatmentName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "treatmentWeights") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Natural)))))

newOnlineAbDefinition :: OnlineAbDefinition Source #

Create a value of OnlineAbDefinition with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:controlTreatmentName:OnlineAbDefinition', onlineAbDefinition_controlTreatmentName - The name of the variation that is the default variation that the other variations are compared to.

$sel:treatmentWeights:OnlineAbDefinition', onlineAbDefinition_treatmentWeights - 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.

onlineAbDefinition_controlTreatmentName :: Lens' OnlineAbDefinition (Maybe Text) Source #

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

onlineAbDefinition_treatmentWeights :: Lens' OnlineAbDefinition (Maybe (HashMap Text Natural)) Source #

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.