interface TreatmentToWeightProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Evidently.CfnExperiment.TreatmentToWeightProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsevidently#CfnExperiment_TreatmentToWeightProperty |
Java | software.amazon.awscdk.services.evidently.CfnExperiment.TreatmentToWeightProperty |
Python | aws_cdk.aws_evidently.CfnExperiment.TreatmentToWeightProperty |
TypeScript | aws-cdk-lib » aws_evidently » CfnExperiment » 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 { aws_evidently as evidently } from 'aws-cdk-lib';
const treatmentToWeightProperty: evidently.CfnExperiment.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
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
The name of the treatment.