start_experiment_run
async
¶
start_experiment_run(
application_identifier: Identifier,
experiment_definition_identifier: Identifier,
*,
config_overrides: Optional[AsyncAppConfigClientConfig] = None,
description: Optional[Description] = None,
exposure_percentage: Optional[NullablePercentage] = None,
treatment_overrides: Optional[TreatmentOverrides] = None,
tags: Optional[TagMap] = None,
deployment_parameters: Optional[DeploymentParameters] = None,
) -> ExperimentRun
Starts an experiment run for the specified experiment definition. An experiment run delivers treatments to the target audience and collects metrics. You can start multiple experiment runs from the same experiment definition.
Billing for this experiment begins when you call this operation and continues until the experiment is stopped. For pricing details, see AppConfig pricing.
Parameters:
-
application_identifier(Identifier) –The application ID or name.
-
experiment_definition_identifier(Identifier) –The experiment definition ID or name.
-
description(Optional[Description], default:None) –A description of this experiment run.
-
exposure_percentage(Optional[NullablePercentage], default:None) –The percentage of the target audience to expose to treatments. Set to 0 to validate the experiment before exposing production users.
-
treatment_overrides(Optional[TreatmentOverrides], default:None) –Treatment assignment overrides that assign specific entity IDs to treatments directly, bypassing random assignment.
-
tags(Optional[TagMap], default:None) –The tags to assign to the experiment run.
-
deployment_parameters(Optional[DeploymentParameters], default:None) –The deployment parameters for the experiment run, including a KMS key identifier for encryption.
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 start an experiment run The following StartExperimentRun example starts an experiment run with 50% audience exposure.
>>> await client.start_experiment_run(application_identifier='339ohji', experiment_definition_identifier='bsxyd7k', exposure_percentage=50.0)
Source code in docs_src/capo_appconfig/_services/async_app_config.py
3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 | |