stopExperimentRun
inline suspend fun AppConfigClient.stopExperimentRun(crossinline block: StopExperimentRunRequest.Builder.() -> Unit): StopExperimentRunResponse
Stops a running experiment. Stopping an experiment run ends audience exposure and returns users to the currently deployed feature flag configuration.
Samples
// The following StopExperimentRun example stops a running experiment and records the result.
val resp = appConfigClient.stopExperimentRun {
applicationIdentifier = "339ohji"
experimentDefinitionIdentifier = "bsxyd7k"
run = 1
result = ExperimentRunResult {
executiveSummary = "t1 wins with 16% lift in conversion"
reasonsToLaunch = "Significant improvement in key metric"
}
}Content copied to clipboard