test_run_events
Creates, updates, deletes, gets or lists a test_run_events resource.
Overview
| Name | test_run_events |
| Type | Resource |
| Id | aws.resiliencehubv2.test_run_events |
Fields
The following fields are returned by SELECT queries:
- list_test_run_events
| Name | Datatype | Description |
|---|---|---|
attributes | object | Machine-parseable key-value attributes for the event. |
event_id | string | The unique identifier of the event. |
event_type | string | The type of the event, such as action_started, action_completed, or rto_recovery_detected. |
message | string | A human-readable description of what happened. |
timestamp | string (date-time) | The timestamp when the event occurred. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_test_run_events | select | test_run_id, serviceArn, region | startedAt, endedAt, maxResults, nextToken | Lists 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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
serviceArn | string | The ARN of the service the test run belongs to. |
test_run_id | string | The identifier of the test run to list events for. |
endedAt | string (date-time) | Return events at or before this timestamp. |
maxResults | integer | |
nextToken | string | |
startedAt | string (date-time) | Return events at or after this timestamp. |
SELECT examples
- list_test_run_events
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 }}'
;