SageMaker / Paginator / ListModelMonitorExecutions

ListModelMonitorExecutions

class SageMaker.Paginator.ListModelMonitorExecutions
paginator = client.get_paginator('list_model_monitor_executions')
paginate(**kwargs)

Creates an iterator that will paginate through responses from SageMaker.Client.list_model_monitor_executions().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    ModelMonitorConfigNameOrArn='string',
    StatusEquals='Pending'|'InProgress'|'Completed'|'Failed'|'Stopping'|'Stopped',
    ScheduledAfter=datetime(2015, 1, 1),
    ScheduledBefore=datetime(2015, 1, 1),
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • ModelMonitorConfigNameOrArn (string) –

    [REQUIRED]

    The name or Amazon Resource Name (ARN) of the model monitor configuration. Specify one of the following:

    • The name of the model monitor configuration.

    • The Amazon Resource Name (ARN) of the model monitor configuration.

  • StatusEquals (string) – A filter that returns only executions with the specified status.

  • ScheduledAfter (datetime) – A filter that returns only executions that were scheduled to run after the specified time.

  • ScheduledBefore (datetime) – A filter that returns only executions that were scheduled to run before the specified time.

  • 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

{
    'ModelMonitorExecutionSummaries': [
        {
            'ScheduledAt': datetime(2015, 1, 1),
            'Status': 'Pending'|'InProgress'|'Completed'|'Failed'|'Stopping'|'Stopped',
            'StartedAt': datetime(2015, 1, 1),
            'EndedAt': datetime(2015, 1, 1),
            'TracesSampled': 123,
            'ReasonCode': 'NoTraffic'|'MostlyUnparsable'|'SpansMissingTraceId'|'NoUsableSpans'|'TracesIncomplete'|'SamplingExcludedAll'|'AllUnevaluable'|'TraceFormatNotSupported'
        },
    ],

}

Response Structure

  • (dict) –

    • ModelMonitorExecutionSummaries (list) –

      A list of summaries of the executions.

      • (dict) –

        Summary information about an execution of a model monitor configuration.

        • ScheduledAt (datetime) –

          The date and time that the execution was scheduled to run.

        • Status (string) –

          The status of the execution.

        • StartedAt (datetime) –

          The date and time that the execution started.

        • EndedAt (datetime) –

          The date and time that the execution ended.

        • TracesSampled (integer) –

          The number of traces that the execution sampled.

        • ReasonCode (string) –

          The reason that the execution produced no scored result. This field is absent when the execution produced a scored result.