get_canary_runs
async
¶
get_canary_runs(
name: CanaryName,
*,
config_overrides: Optional[AsyncsyntheticsClientConfig] = None,
next_token: Optional[Token] = None,
max_results: Optional[MaxSize100] = None,
dry_run_id: Optional[UUID] = None,
run_type: Optional[RunType] = None,
) -> GetCanaryRunsResponse
Retrieves a list of runs for a specified canary.
Parameters:
-
name(CanaryName) –The name of the canary that you want to see runs for.
-
next_token(Optional[Token], default:None) –A token that indicates that there is more data available. You can use this token in a subsequent
GetCanaryRunsoperation to retrieve the next set of results.When auto retry is enabled for the canary, the first subsequent retry is suffixed with *1 indicating its the first retry and the next subsequent try is suffixed with *2.
-
max_results(Optional[MaxSize100], default:None) –Specify this parameter to limit how many runs are returned each time you use the
GetCanaryRunsoperation. If you omit this parameter, the default of 100 is used. -
dry_run_id(Optional[UUID], default:None) –The DryRunId associated with an existing canary’s dry run. You can use this DryRunId to retrieve information about the dry run.
-
run_type(Optional[RunType], default:None) –-
When you provide
RunType=CANARY_RUNanddryRunId, you will get an exception -
When a value is not provided for
RunType, the default value isCANARY_RUN -
When
CANARY_RUNis provided, all canary runs excluding dry runs are returned -
When
DRY_RUNis provided, all dry runs excluding canary runs are returned
-
Raises:
-
InternalServerException–An unknown internal error occurred.
-
ResourceNotFoundException–One of the specified resources was not found.
-
ValidationException–A parameter could not be validated.
-
UnknownServiceError–The service returned an error code this client does not model.