complete_experiment_run
async
¶
complete_experiment_run(
experiment_id: ExperimentId,
run_id: ExperimentRunId,
*,
config_overrides: Optional[AsyncCloudWatchOmniClientConfig] = 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.
>>> await client.complete_experiment_run(experiment_id='exp-01JD8K3M5N7P9Q2R4S6T8V0W1X', run_id='ci-build-4821')
Source code in docs_src/capo_cloudwatchomni/_services/async_cloud_watch_omni.py
6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 | |