Retrieves the execution history of a scheduled query within a specified time range, including query results and destination processing status¶
Description¶
Retrieves the execution history of a scheduled query within a specified time range, including query results and destination processing status.
Usage¶
cloudwatchlogs_get_scheduled_query_history(identifier, startTime,
endTime, executionStatuses, maxResults, nextToken)
Arguments¶
-
identifier[required] The ARN or name of the scheduled query to retrieve history for.
-
startTime[required] The start time for the history query in Unix epoch format.
-
endTime[required] The end time for the history query in Unix epoch format.
-
executionStatusesAn array of execution statuses to filter the history results. Only executions with the specified statuses are returned.
-
maxResultsThe maximum number of history records to return. Valid range is 1 to 1000.
-
nextTokenThe token for the next set of items to return. The token expires after 24 hours.
Value¶
A list with the following syntax:
list(
name = "string",
scheduledQueryArn = "string",
triggerHistory = list(
list(
queryId = "string",
executionStatus = "Running"|"InvalidQuery"|"Complete"|"Failed"|"Timeout",
triggeredTimestamp = 123,
errorMessage = "string",
destinations = list(
list(
destinationType = "S3"|"LOOKUP_TABLE",
destinationIdentifier = "string",
status = "IN_PROGRESS"|"CLIENT_ERROR"|"FAILED"|"COMPLETE",
processedIdentifier = "string",
errorMessage = "string"
)
)
)
),
nextToken = "string"
)