update_experiment_run
¶
update_experiment_run(
application_identifier: Identifier,
experiment_definition_identifier: Identifier,
run: PositiveInteger,
*,
config_overrides: Optional[AppConfigClientConfig] = 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.
>>> 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/app_config.py
3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 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 | |