get_experiment_run
async
¶
get_experiment_run(
experiment_id: ExperimentId,
run_id: ExperimentRunId,
*,
config_overrides: Optional[AsyncCloudWatchOmniClientConfig] = None,
) -> GetExperimentRunOutput
Retrieves the details of a run. The response includes the run's status, progress, case summary, evaluator metrics and, when it has a rule, its verdict and the checks behind it. For a hosted run, it also includes the batch evaluation's progress.
Parameters:
-
experiment_id(ExperimentId) –The ID of the experiment the run belongs to.
-
run_id(ExperimentRunId) –The ID of the run to retrieve.
Raises:
-
AccessDeniedException–The caller is not authorized to perform this action.
-
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:
Get a completed hosted run The following example returns a hosted run that has completed and passed its rule. Payloads are shown as JSON; on the wire they are CBOR-encoded.
>>> await client.get_experiment_run(experiment_id='exp-01JD8K3M5N7P9Q2R4S6T8V0W1X', run_id='run-01JD8M2A4C6E8G0J2K4M6P8R0T')
Source code in docs_src/capo_cloudwatchomni/_services/async_cloud_watch_omni.py
7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 | |