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
5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 | |