stop_experiment_run
¶
stop_experiment_run(
application_identifier: Identifier,
experiment_definition_identifier: Identifier,
run: PositiveInteger,
*,
config_overrides: Optional[AppConfigClientConfig] = None,
result: Optional[ExperimentRunResult] = None,
deployment_parameters: Optional[DeploymentParameters] = None,
) -> ExperimentRun
Stops a running experiment. Stopping an experiment run ends audience exposure and returns users to the currently deployed feature flag configuration.
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 stop.
-
result(Optional[ExperimentRunResult], default:None) –The result of the experiment run, including an executive summary and reasons for or against launching.
-
deployment_parameters(Optional[DeploymentParameters], default:None) –The deployment parameters for the stop operation.
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 stop an experiment run The following StopExperimentRun example stops a running experiment and records the result.
>>> client.stop_experiment_run(application_identifier='339ohji', experiment_definition_identifier='bsxyd7k', run=1, result={'ExecutiveSummary': 't1 wins with 16% lift in conversion', 'ReasonsToLaunch': 'Significant improvement in key metric'})
Source code in docs_src/capo_appconfig/_services/app_config.py
3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 | |