SageMaker / Client / get_model_monitor_config

get_model_monitor_config

SageMaker.Client.get_model_monitor_config(**kwargs)

Returns information about a model monitor configuration. You identify the configuration by its name or Amazon Resource Name (ARN).

Note

This operation is in public preview release for Amazon SageMaker AI and is subject to change. This feature is not recommended for production environments.

See also: AWS API Documentation

Request Syntax

response = client.get_model_monitor_config(
    ModelMonitorConfigNameOrArn='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.

Return type:

dict

Returns:

Response Syntax

{
    'ModelMonitorConfigArn': 'string',
    'ModelMonitorConfigName': 'string',
    'MonitoringSource': {
        'SageMakerEndpoint': {
            'EndpointName': 'string',
            'VariantName': 'string'
        },
        'BedrockModel': {
            'ModelId': 'string',
            'RequestMetadata': {
                'string': 'string'
            }
        }
    },
    'EvaluationConfig': {
        'EvalCriteria': {
            'EvalCriteriaArn': 'string',
            'EvalCriteriaVersion': 'string',
            'Sampling': {
                'SamplingPercentage': 123.0,
                'MaxRecords': 123
            }
        },
        'EvalCriteriaList': [
            {
                'EvalCriteriaArn': 'string',
                'EvalCriteriaVersion': 'string',
                'Sampling': {
                    'SamplingPercentage': 123.0,
                    'MaxRecords': 123
                }
            },
        ]
    },
    'ScheduleConfig': {
        'ScheduleExpression': 'string'
    },
    'Status': 'Creating'|'Active'|'Inactive'|'Updating'|'Deleting'|'Failed'|'DeleteFailed',
    'StatusReason': 'string',
    'Version': 123,
    'RoleArn': 'string',
    'CreatedAt': datetime(2015, 1, 1),
    'UpdatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) –

    • ModelMonitorConfigArn (string) –

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

    • ModelMonitorConfigName (string) –

      The name of the model monitor configuration.

    • MonitoringSource (dict) –

      The source that the model monitor configuration monitors.

      Note

      This is a Tagged Union structure. Only one of the following top level keys will be set: SageMakerEndpoint, BedrockModel. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is as follows:

      'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
      
      • SageMakerEndpoint (dict) –

        A SageMaker AI endpoint to monitor.

        • EndpointName (string) –

          The name of the endpoint.

        • VariantName (string) –

          The name of the production variant on the endpoint.

      • BedrockModel (dict) –

        An Amazon Bedrock model to monitor.

        • ModelId (string) –

          The ID of the Amazon Bedrock model.

        • RequestMetadata (dict) –

          Limits monitoring to the model invocations that carry these Amazon Bedrock request metadata entries. For more information, see request metadata in the Amazon Bedrock User Guide.

          • (string) –

            An Amazon Bedrock request metadata key.

            • (string) –

              An Amazon Bedrock request metadata value.

    • EvaluationConfig (dict) –

      The evaluation monitoring settings. This field is present for an evaluation monitor.

      Note

      This is a Tagged Union structure. Only one of the following top level keys will be set: EvalCriteria, EvalCriteriaList. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is as follows:

      'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
      
      • EvalCriteria (dict) –

        One Eval Criteria and its sampling settings.

        • EvalCriteriaArn (string) –

          The Amazon Resource Name (ARN) of the Eval Criteria, a SageMaker AI hub content resource. The ARN can end with a version in the form major.minor.patch.

        • EvalCriteriaVersion (string) –

          The version of the Eval Criteria, in the form major.minor.patch. Each part is 1 to 4 digits.

        • Sampling (dict) –

          The sampling settings that every evaluator under the Eval Criteria shares.

          • SamplingPercentage (float) –

            The percentage of traces to sample. Valid values are from 0.01 to 100.

          • MaxRecords (integer) –

            The maximum number of records to sample. Valid values are from 1 to 5000.

      • EvalCriteriaList (list) –

        A list of Eval Criteria, each with its own sampling settings.

        • (dict) –

          One Eval Criteria and the sampling settings that every evaluator under it shares.

          • EvalCriteriaArn (string) –

            The Amazon Resource Name (ARN) of the Eval Criteria, a SageMaker AI hub content resource. The ARN can end with a version in the form major.minor.patch.

          • EvalCriteriaVersion (string) –

            The version of the Eval Criteria, in the form major.minor.patch. Each part is 1 to 4 digits.

          • Sampling (dict) –

            The sampling settings that every evaluator under the Eval Criteria shares.

            • SamplingPercentage (float) –

              The percentage of traces to sample. Valid values are from 0.01 to 100.

            • MaxRecords (integer) –

              The maximum number of records to sample. Valid values are from 1 to 5000.

    • ScheduleConfig (dict) –

      The schedule on which the model monitor configuration runs.

      • ScheduleExpression (string) –

        The schedule expression for the model monitor configuration.

    • Status (string) –

      The status of the model monitor configuration.

    • StatusReason (string) –

      Details about the failure, if the status of the model monitor configuration is Failed or DeleteFailed.

    • Version (integer) –

      The version of the model monitor configuration. The version increments each time you update the configuration, so you can trace results to the configuration that produced them.

    • RoleArn (string) –

      The Amazon Resource Name (ARN) of the IAM role that the model monitor configuration uses.

    • CreatedAt (datetime) –

      The date and time that the model monitor configuration was created.

    • UpdatedAt (datetime) –

      The date and time that the model monitor configuration was last updated.

Exceptions