start_experiment_run
¶
start_experiment_run(
application_identifier: Identifier,
experiment_definition_identifier: Identifier,
*,
config_overrides: Optional[AppConfigClientConfig] = 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.
>>> client.start_experiment_run(application_identifier='339ohji', experiment_definition_identifier='bsxyd7k', exposure_percentage=50.0)
Source code in docs_src/capo_appconfig/_services/app_config.py
3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 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 | |