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

Description

 
Synopsis

Documentation

data OnlineAbConfig 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: newOnlineAbConfig smart constructor.

Constructors

OnlineAbConfig' 

Fields

  • controlTreatmentName :: Maybe Text

    The name of the variation that is to be 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. Specify the traffic portion in thousandths of a percent, so 20,000 for a variation would allocate 20% of the experiment traffic to that variation.

Instances

Instances details
ToJSON OnlineAbConfig Source # 
Instance details

Defined in Amazonka.Evidently.Types.OnlineAbConfig

Generic OnlineAbConfig Source # 
Instance details

Defined in Amazonka.Evidently.Types.OnlineAbConfig

Associated Types

type Rep OnlineAbConfig :: Type -> Type #

Read OnlineAbConfig Source # 
Instance details

Defined in Amazonka.Evidently.Types.OnlineAbConfig

Show OnlineAbConfig Source # 
Instance details

Defined in Amazonka.Evidently.Types.OnlineAbConfig

NFData OnlineAbConfig Source # 
Instance details

Defined in Amazonka.Evidently.Types.OnlineAbConfig

Methods

rnf :: OnlineAbConfig -> () #

Eq OnlineAbConfig Source # 
Instance details

Defined in Amazonka.Evidently.Types.OnlineAbConfig

Hashable OnlineAbConfig Source # 
Instance details

Defined in Amazonka.Evidently.Types.OnlineAbConfig

type Rep OnlineAbConfig Source # 
Instance details

Defined in Amazonka.Evidently.Types.OnlineAbConfig

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

newOnlineAbConfig :: OnlineAbConfig Source #

Create a value of OnlineAbConfig 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:OnlineAbConfig', onlineAbConfig_controlTreatmentName - The name of the variation that is to be the default variation that the other variations are compared to.

$sel:treatmentWeights:OnlineAbConfig', onlineAbConfig_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. Specify the traffic portion in thousandths of a percent, so 20,000 for a variation would allocate 20% of the experiment traffic to that variation.

onlineAbConfig_controlTreatmentName :: Lens' OnlineAbConfig (Maybe Text) Source #

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

onlineAbConfig_treatmentWeights :: Lens' OnlineAbConfig (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. Specify the traffic portion in thousandths of a percent, so 20,000 for a variation would allocate 20% of the experiment traffic to that variation.