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 |
Synopsis
- data Feature = Feature' {
- defaultVariation :: Maybe Text
- description :: Maybe Text
- entityOverrides :: Maybe (HashMap Text Text)
- evaluationRules :: Maybe [EvaluationRule]
- project :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- arn :: Text
- createdTime :: POSIX
- evaluationStrategy :: FeatureEvaluationStrategy
- lastUpdatedTime :: POSIX
- name :: Text
- status :: FeatureStatus
- valueType :: VariationValueType
- variations :: [Variation]
- newFeature :: Text -> UTCTime -> FeatureEvaluationStrategy -> UTCTime -> Text -> FeatureStatus -> VariationValueType -> Feature
- feature_defaultVariation :: Lens' Feature (Maybe Text)
- feature_description :: Lens' Feature (Maybe Text)
- feature_entityOverrides :: Lens' Feature (Maybe (HashMap Text Text))
- feature_evaluationRules :: Lens' Feature (Maybe [EvaluationRule])
- feature_project :: Lens' Feature (Maybe Text)
- feature_tags :: Lens' Feature (Maybe (HashMap Text Text))
- feature_arn :: Lens' Feature Text
- feature_createdTime :: Lens' Feature UTCTime
- feature_evaluationStrategy :: Lens' Feature FeatureEvaluationStrategy
- feature_lastUpdatedTime :: Lens' Feature UTCTime
- feature_name :: Lens' Feature Text
- feature_status :: Lens' Feature FeatureStatus
- feature_valueType :: Lens' Feature VariationValueType
- feature_variations :: Lens' Feature [Variation]
Documentation
This structure contains information about one Evidently feature in your account.
See: newFeature
smart constructor.
Feature' | |
|
Instances
:: Text | |
-> UTCTime | |
-> FeatureEvaluationStrategy | |
-> UTCTime | |
-> Text | |
-> FeatureStatus | |
-> VariationValueType | |
-> Feature |
Create a value of Feature
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:defaultVariation:Feature'
, feature_defaultVariation
- The name of the variation that is used as the default variation. The
default variation is served to users who are not allocated to any
ongoing launches or experiments of this feature.
This variation must also be listed in the variations
structure.
If you omit defaultVariation
, the first variation listed in the
variations
structure is used as the default variation.
$sel:description:Feature'
, feature_description
- The description of the feature.
$sel:entityOverrides:Feature'
, feature_entityOverrides
- A set of key-value pairs that specify users who should always be served
a specific variation of a feature. Each key specifies a user using their
user ID, account ID, or some other identifier. The value specifies the
name of the variation that the user is to be served.
For the override to be successful, the value of the key must match the
entityId
used in the
EvaluateFeature
operation.
$sel:evaluationRules:Feature'
, feature_evaluationRules
- An array of structures that define the evaluation rules for the feature.
$sel:project:Feature'
, feature_project
- The name or ARN of the project that contains the feature.
$sel:tags:Feature'
, feature_tags
- The list of tag keys and values associated with this feature.
$sel:arn:Feature'
, feature_arn
- The ARN of the feature.
$sel:createdTime:Feature'
, feature_createdTime
- The date and time that the feature is created.
$sel:evaluationStrategy:Feature'
, feature_evaluationStrategy
- If this value is ALL_RULES
, the traffic allocation specified by any
ongoing launches or experiments is being used. If this is
DEFAULT_VARIATION
, the default variation is being served to all users.
$sel:lastUpdatedTime:Feature'
, feature_lastUpdatedTime
- The date and time that the feature was most recently updated.
Feature
, feature_name
- The name of the feature.
$sel:status:Feature'
, feature_status
- The current state of the feature.
$sel:valueType:Feature'
, feature_valueType
- Defines the type of value used to define the different feature
variations. For more information, see
Variation types
$sel:variations:Feature'
, feature_variations
- An array of structures that contain the configuration of the feature's
different variations.
feature_defaultVariation :: Lens' Feature (Maybe Text) Source #
The name of the variation that is used as the default variation. The default variation is served to users who are not allocated to any ongoing launches or experiments of this feature.
This variation must also be listed in the variations
structure.
If you omit defaultVariation
, the first variation listed in the
variations
structure is used as the default variation.
feature_entityOverrides :: Lens' Feature (Maybe (HashMap Text Text)) Source #
A set of key-value pairs that specify users who should always be served a specific variation of a feature. Each key specifies a user using their user ID, account ID, or some other identifier. The value specifies the name of the variation that the user is to be served.
For the override to be successful, the value of the key must match the
entityId
used in the
EvaluateFeature
operation.
feature_evaluationRules :: Lens' Feature (Maybe [EvaluationRule]) Source #
An array of structures that define the evaluation rules for the feature.
feature_project :: Lens' Feature (Maybe Text) Source #
The name or ARN of the project that contains the feature.
feature_tags :: Lens' Feature (Maybe (HashMap Text Text)) Source #
The list of tag keys and values associated with this feature.
feature_evaluationStrategy :: Lens' Feature FeatureEvaluationStrategy Source #
If this value is ALL_RULES
, the traffic allocation specified by any
ongoing launches or experiments is being used. If this is
DEFAULT_VARIATION
, the default variation is being served to all users.
feature_lastUpdatedTime :: Lens' Feature UTCTime Source #
The date and time that the feature was most recently updated.
feature_status :: Lens' Feature FeatureStatus Source #
The current state of the feature.
feature_valueType :: Lens' Feature VariationValueType Source #
Defines the type of value used to define the different feature variations. For more information, see Variation types