update_experiment
¶
update_experiment(
experiment_id: ExperimentId,
*,
config_overrides: Optional[CloudWatchOmniClientConfig] = None,
name: Optional[ExperimentName] = None,
description: Optional[Description] = None,
experiment_config: Optional[ExperimentConfig] = None,
baseline_run_id: Optional[ExperimentRunIdOrEmpty] = None,
) -> UpdateExperimentOutput
Updates an experiment. Only the provided fields are changed; omitted fields are left unchanged. A request must set at least one of name, description, experimentConfig, or baselineRunId, and the target and type cannot be changed. Fails with a ConflictException if experimentConfig is changed while a run is RUNNING or STOPPING. Changes to the name, description, or baseline run are always allowed.
Parameters:
-
experiment_id(ExperimentId) –The ID of the experiment to update.
-
name(Optional[ExperimentName], default:None) –A new name for the experiment. Omit to leave unchanged.
-
description(Optional[Description], default:None) –A new description of the experiment. Omit to leave unchanged; an empty string clears it.
-
experiment_config(Optional[ExperimentConfig], default:None) –A new configuration for the experiment. Omit to leave unchanged. Replaces the configuration in full, and its member must match the experiment's type: a DATASET experiment takes only experimentConfig.dataset. The configuration is validated as in CreateExperiment: a new execution role requires iam:PassRole, the role must be assumable, and the results log group must exist and use the Standard log class. Applies to runs started after the update.
-
baseline_run_id(Optional[ExperimentRunIdOrEmpty], default:None) –The ID of the run to make the experiment's baseline. Omit to leave unchanged; an empty string clears it. The run must be a COMPLETED target run of this experiment. A live control's run is rejected whether or not it has ended, but a run used as another run's historical control is a target run and is accepted. Otherwise fails with a ValidationException. Deleting the baseline run clears the baseline.
Raises:
-
AccessDeniedException–The caller is not authorized to perform this action.
-
ConflictException–The operation could not be completed because of a conflict with the current state of the resource.
-
InternalServerException–An unexpected error occurred while processing the request.
-
ResourceNotFoundException–The specified resource does not exist.
-
ThrottlingException–The request was throttled due to exceeding the allowed request rate.
-
ValidationException–A parameter is specified incorrectly.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Set an experiment's baseline run and description The following example makes a completed run the experiment's baseline and changes its description; omitted fields, including the configuration, are left unchanged. Payloads are shown as JSON; on the wire they are CBOR-encoded.
>>> client.update_experiment(experiment_id='exp-01JC8Z5V7Q3M9K2T4R6W8Y0ABC', description='Checks booking accuracy before each release. Baseline is the November release.', baseline_run_id='ci-build-4790')
Source code in docs_src/capo_cloudwatchomni/_services/cloud_watch_omni.py
6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 | |