get_scheduled_query_history
async
¶
get_scheduled_query_history(
identifier: ScheduledQueryIdentifier,
start_time: Timestamp,
end_time: Timestamp,
*,
config_overrides: Optional[AsyncCloudWatchLogsClientConfig] = 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/async_cloud_watch_logs.py
5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 | |