interface TreatmentToWeightProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Evidently.Mixins.CfnExperimentPropsMixin.TreatmentToWeightProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsevidently/mixins#CfnExperimentPropsMixin_TreatmentToWeightProperty |
Java | software.amazon.awscdk.mixins.preview.services.evidently.mixins.CfnExperimentPropsMixin.TreatmentToWeightProperty |
Python | aws_cdk.mixins_preview.aws_evidently.mixins.CfnExperimentPropsMixin.TreatmentToWeightProperty |
TypeScript | @aws-cdk/mixins-preview » aws_evidently » mixins » CfnExperimentPropsMixin » TreatmentToWeightProperty |
This structure defines how much experiment traffic to allocate to one treatment used in the experiment.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as evidently_mixins } from '@aws-cdk/mixins-preview/aws-evidently';
const treatmentToWeightProperty: evidently_mixins.CfnExperimentPropsMixin.TreatmentToWeightProperty = {
splitWeight: 123,
treatment: 'treatment',
};
Properties
| Name | Type | Description |
|---|---|---|
| split | number | The portion of experiment traffic to allocate to this treatment. |
| treatment? | string | The name of the treatment. |
splitWeight?
Type:
number
(optional)
The portion of experiment traffic to allocate to this treatment.
Specify the traffic portion in thousandths of a percent, so 20,000 allocated to a treatment would allocate 20% of the experiment traffic to that treatment.
treatment?
Type:
string
(optional)
The name of the treatment.

.NET
Go
Java
Python
TypeScript