CloudWatchOmni / Paginator / ListTelemetryQuerySessions

ListTelemetryQuerySessions

class CloudWatchOmni.Paginator.ListTelemetryQuerySessions
paginator = client.get_paginator('list_telemetry_query_sessions')
paginate(**kwargs)

Creates an iterator that will paginate through responses from CloudWatchOmni.Client.list_telemetry_query_sessions().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:

PaginationConfig (dict) –

A dictionary that provides parameters to control pagination.

  • MaxItems (integer) –

    The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

  • PageSize (integer) –

    The size of each page.

  • StartingToken (string) –

    A token to specify where to start paginating. This is the NextToken from a previous response.

Return type:

dict

Returns:

Response Syntax

{
    'sessions': [
        {
            'sessionId': 'string',
            'createdAt': datetime(2015, 1, 1),
            'lastActivityAt': datetime(2015, 1, 1),
            'sessionName': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • sessions (list) –

      The list of session summaries.

      • (dict) –

        Summary information about a query session, including its identifier, name, and activity timestamps.

        • sessionId (string) –

          The unique ID of the session.

        • createdAt (datetime) –

          The timestamp when the session was created.

        • lastActivityAt (datetime) –

          The timestamp of the most recent activity in the session.

        • sessionName (string) –

          The human-readable name of the session. Names under /aws/ are reserved for service integrations.

    • NextToken (string) –

      A token to resume pagination.