ResilienceHubV2 / Client / list_test_run_events

list_test_run_events

ResilienceHubV2.Client.list_test_run_events(**kwargs)

Lists the events in a test run’s timeline.

See also: AWS API Documentation

Request Syntax

response = client.list_test_run_events(
    testRunId='string',
    serviceArn='string',
    startedAt=datetime(2015, 1, 1),
    endedAt=datetime(2015, 1, 1),
    maxResults=123,
    nextToken='string'
)
Parameters:
  • testRunId (string) –

    [REQUIRED]

    The identifier of the test run to list events for.

  • serviceArn (string) –

    [REQUIRED]

    The ARN of the service the test run belongs to.

  • startedAt (datetime) – Return events at or after this timestamp.

  • endedAt (datetime) – Return events at or before this timestamp.

  • maxResults (integer) – Pagination page size.

  • nextToken (string) – Pagination token.

Return type:

dict

Returns:

Response Syntax

{
    'events': [
        {
            'eventId': 'string',
            'eventType': 'string',
            'message': 'string',
            'timestamp': datetime(2015, 1, 1),
            'attributes': {
                'string': 'string'
            }
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    • events (list) –

      The list of test run events.

      • (dict) –

        A single event in a test run’s timeline.

        • eventId (string) –

          The unique identifier of the event.

        • eventType (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 (datetime) –

          The timestamp when the event occurred.

        • attributes (dict) –

          Machine-parseable key-value attributes for the event.

          • (string) –

            The key of a test run event attribute.

            • (string) –

              The value of a test run event attribute.

    • nextToken (string) –

      Pagination token.

Exceptions

  • ResilienceHubV2.Client.exceptions.InternalServerException

  • ResilienceHubV2.Client.exceptions.ResourceNotFoundException

  • ResilienceHubV2.Client.exceptions.ValidationException

  • ResilienceHubV2.Client.exceptions.AccessDeniedException