Skip to main content

test_run_events

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

Overview

Nametest_run_events
TypeResource
Idaws.resiliencehubv2.test_run_events

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
attributesobjectMachine-parseable key-value attributes for the event.
event_idstringThe unique identifier of the event.
event_typestringThe type of the event, such as action_started, action_completed, or rto_recovery_detected.
messagestringA human-readable description of what happened.
timestampstring (date-time)The timestamp when the event occurred.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_test_run_eventsselecttest_run_id, serviceArn, regionstartedAt, endedAt, maxResults, nextTokenLists the events in a test run's timeline.

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)
serviceArnstringThe ARN of the service the test run belongs to.
test_run_idstringThe identifier of the test run to list events for.
endedAtstring (date-time)Return events at or before this timestamp.
maxResultsinteger
nextTokenstring
startedAtstring (date-time)Return events at or after this timestamp.

SELECT examples

Lists the events in a test run's timeline.

SELECT
attributes,
event_id,
event_type,
message,
timestamp
FROM aws.resiliencehubv2.test_run_events
WHERE test_run_id = '{{ test_run_id }}' -- required
AND serviceArn = '{{ serviceArn }}' -- required
AND region = '{{ region }}' -- required
AND startedAt = '{{ startedAt }}'
AND endedAt = '{{ endedAt }}'
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;