| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Evidently.Types.Treatment
Description
Synopsis
- data Treatment = Treatment' {
- description :: Maybe Text
- featureVariations :: Maybe (HashMap Text Text)
- name :: Text
- newTreatment :: Text -> Treatment
- treatment_description :: Lens' Treatment (Maybe Text)
- treatment_featureVariations :: Lens' Treatment (Maybe (HashMap Text Text))
- treatment_name :: Lens' Treatment Text
Documentation
A structure that defines one treatment in an experiment. A treatment is a variation of the feature that you are including in the experiment.
See: newTreatment smart constructor.
Constructors
| Treatment' | |
Fields
| |
Instances
| FromJSON Treatment Source # | |
| Generic Treatment Source # | |
| Read Treatment Source # | |
| Show Treatment Source # | |
| NFData Treatment Source # | |
Defined in Amazonka.Evidently.Types.Treatment | |
| Eq Treatment Source # | |
| Hashable Treatment Source # | |
Defined in Amazonka.Evidently.Types.Treatment | |
| type Rep Treatment Source # | |
Defined in Amazonka.Evidently.Types.Treatment type Rep Treatment = D1 ('MetaData "Treatment" "Amazonka.Evidently.Types.Treatment" "amazonka-evidently-2.0-Es2fJk98R0DAUPYaVkZSYC" 'False) (C1 ('MetaCons "Treatment'" 'PrefixI 'True) (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "featureVariations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))) | |
Create a value of Treatment 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:description:Treatment', treatment_description - The description of the treatment.
$sel:featureVariations:Treatment', treatment_featureVariations - The feature variation used for this treatment. This is a key-value pair.
The key is the feature name, and the value is the variation name.
$sel:name:Treatment', treatment_name - The name of this treatment.