get_scheduled_query_history
¶
get_scheduled_query_history(
identifier: ScheduledQueryIdentifier,
start_time: Timestamp,
end_time: Timestamp,
*,
config_overrides: Optional[CloudWatchLogsClientConfig] = None,
execution_statuses: Optional[ExecutionStatusList] = None,
max_results: Optional[GetScheduledQueryHistoryMaxResults] = None,
next_token: Optional[NextToken] = None,
) -> GetScheduledQueryHistoryResponse
Retrieves the execution history of a scheduled query within a specified time range, including query results and destination processing status.
Parameters:
-
identifier(ScheduledQueryIdentifier) –The ARN or name of the scheduled query to retrieve history for.
-
start_time(Timestamp) –The start time for the history query in Unix epoch format.
-
end_time(Timestamp) –The end time for the history query in Unix epoch format.
-
execution_statuses(Optional[ExecutionStatusList], default:None) –An array of execution statuses to filter the history results. Only executions with the specified statuses are returned.
-
max_results(Optional[GetScheduledQueryHistoryMaxResults], default:None) –The maximum number of history records to return. Valid range is 1 to 1000.
Raises:
-
AccessDeniedException–You don't have sufficient permissions to perform this action.
-
InternalServerException–An internal server error occurred while processing the request. This exception is returned when the service encounters an unexpected condition that prevents it from fulfilling the request.
-
ResourceNotFoundException–The specified resource does not exist.
-
ThrottlingException–The request was throttled because of quota limits.
-
ValidationException–One of the parameters for the request is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cloudwatch_logs/_services/cloud_watch_logs.py
4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 | |