update_experiment_run
async
¶
update_experiment_run(
application_identifier: Identifier,
experiment_definition_identifier: Identifier,
run: PositiveInteger,
*,
config_overrides: Optional[AsyncAppConfigClientConfig] = None,
description: Optional[Description] = None,
exposure_percentage: Optional[NullablePercentage] = None,
treatment_overrides: Optional[TreatmentOverrides] = None,
deployment_parameters: Optional[DeploymentParameters] = None,
) -> ExperimentRun
Updates a running experiment. Use this operation to increase audience exposure, modify treatment assignment overrides, or update the description of an active experiment run. Audience exposure can only be increased, not decreased.
Parameters:
-
application_identifier(Identifier) –The application ID or name.
-
experiment_definition_identifier(Identifier) –The experiment definition ID or name.
-
run(PositiveInteger) –The run number to update.
-
description(Optional[Description], default:None) –An updated description for the experiment run.
-
exposure_percentage(Optional[NullablePercentage], default:None) –The new exposure percentage. This value can only be increased from the current setting.
-
treatment_overrides(Optional[TreatmentOverrides], default:None) –The updated treatment assignment overrides that assign specific entity IDs to treatments, bypassing random assignment.
-
deployment_parameters(Optional[DeploymentParameters], default:None) –The updated deployment parameters for the experiment run.
Raises:
-
BadRequestException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
ConflictException–The request could not be processed because of conflict in the current state of the resource.
-
InternalServerException–There was an internal failure in the AppConfig service.
-
ResourceNotFoundException–The requested resource could not be found.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To update an experiment run The following UpdateExperimentRun example increases the exposure percentage of a running experiment.
>>> await client.update_experiment_run(application_identifier='339ohji', experiment_definition_identifier='bsxyd7k', run=1, exposure_percentage=75.0)
Source code in docs_src/capo_appconfig/_services/async_app_config.py
4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 | |