Skip to main content

scheduled_query_histories

Creates, updates, deletes, gets or lists a scheduled_query_histories resource.

Overview

Namescheduled_query_histories
TypeResource
Idaws.logs.scheduled_query_histories

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
destinationsarrayInformation about destination processing for this query execution.
error_messagestringError message if the query execution failed.
execution_statusstringThe execution status of the scheduled query run. (Running, InvalidQuery, Complete, Failed, Timeout)
query_idstringThe unique identifier for this query execution.
triggered_timestampinteger (int64)The timestamp when the scheduled query execution was triggered.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_scheduled_query_historyselectregionRetrieves the execution history of a scheduled query within a specified time range, including query results and destination processing status.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves the execution history of a scheduled query within a specified time range, including query results and destination processing status.

SELECT
destinations,
error_message,
execution_status,
query_id,
triggered_timestamp
FROM aws.logs.scheduled_query_histories
WHERE region = '{{ region }}' -- required
;