CloudWatchLogsClient.get_scheduled_query_history
rboto-cloudwatch-logs==0.4.0 · Service index · Types
Model summary (excerpt): Retrieves the execution history of a scheduled query within a specified time range, including query results and destination processing status.
Install and imports
from rboto import CloudWatchLogsClient
from collections.abc import Sequence
from rboto_cloudwatch_logs.types import (
ExecutionStatus,
GetScheduledQueryHistoryOutput,
)
Signature
async def get_scheduled_query_history(
*,
identifier: str,
start_time: int,
end_time: int,
execution_statuses: Sequence[ExecutionStatus] | None = None,
max_results: int | None = None,
next_token: str | None = None,
) -> GetScheduledQueryHistoryOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
identifier |
Yes | The ARN or name of the scheduled query to retrieve history for. |
start_time |
Yes | The start time for the history query in Unix epoch format. |
end_time |
Yes | The end time for the history query in Unix epoch format. |
execution_statuses |
No | An array of execution statuses to filter the history results. Only executions with the specified statuses are returned. |
max_results |
No | The maximum number of history records to return. Valid range is 1 to 1000. |
next_token |
No |
Output
GetScheduledQueryHistoryOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
name |
str | None |
Always present | — |
scheduled_query_arn |
str | None |
Always present | — |
trigger_history |
list[TriggerHistoryRecordOutput] | None |
Always present | TriggerHistoryRecordOutput |
next_token |
str | None |
Always present | — |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
ExecutionStatus, GetScheduledQueryHistoryOutput
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
client.paginators.get_scheduled_query_history(...) accepts the same arguments and returns AsyncIterator[GetScheduledQueryHistoryOutput]. Direct calls return one page. Pages preserve the Output representation above.
Input cursors: next_token. Page-size argument: max_results.
No output stream.
Errors
Import from rboto_cloudwatch_logs.exceptions:
AccessDeniedError, InternalServerError, ResourceNotFoundError, ThrottlingError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.