complete_experiment_run
¶
complete_experiment_run(
experiment_id: ExperimentId,
run_id: ExperimentRunId,
*,
config_overrides: Optional[CloudWatchOmniClientConfig] = None,
) -> CompleteExperimentRunOutput
Completes a run that is reported from the caller's code. Call this after reporting the run's cases with PutExperimentRunResults. The run's status becomes COMPLETED, and the service computes its summary and, when it has a rule, its verdict. Cases that were never reported count as not run. The run record is written to the run's log stream in the experiment's results log group. After the run ends, PutExperimentRunResults calls for it fail with a ConflictException (RUN_TERMINAL).
Parameters:
-
experiment_id(ExperimentId) –The ID of the experiment the run belongs to.
-
run_id(ExperimentRunId) –The ID of the run to complete.
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:
Complete a reported run The following example completes a run reported from the caller's code whose 50 cases were all reported. The run has a rule, so it gets a verdict. Payloads are shown as JSON; on the wire they are CBOR-encoded.
>>> client.complete_experiment_run(experiment_id='exp-01JD8K3M5N7P9Q2R4S6T8V0W1X', run_id='ci-build-4821')
Source code in docs_src/capo_cloudwatchomni/_services/cloud_watch_omni.py
6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 | |