Skip to main content

online_evaluation_configs

Creates, updates, deletes, gets or lists an online_evaluation_configs resource.

Overview

Nameonline_evaluation_configs
TypeResource
Idaws.bedrock_agentcore_control.online_evaluation_configs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
clustering_configobjectConfiguration for periodic batch evaluation clustering, specifying how often clustering jobs run.
created_atstring (date-time)The timestamp when the online evaluation configuration was created.
data_source_configobjectThe configuration that specifies where to read agent traces for online evaluation.
descriptionstringThe description of the online evaluation configuration. (pattern: <code>.+</code>)
evaluation_execution_role_arnstringThe Amazon Resource Name (ARN) of the IAM role used for evaluation execution. (pattern: <code>arn:aws(-[^:]+)?:iam::([0-9]{12})?:role/.+</code>)
evaluatorsarrayThe list of evaluators applied during online evaluation.
execution_statusstringThe execution status indicating whether the online evaluation is currently running. (ENABLED, DISABLED)
failure_reasonstringThe reason for failure if the online evaluation configuration execution failed.
insightsarrayThe list of insight types configured for this evaluation.
online_evaluation_config_arnstringThe Amazon Resource Name (ARN) of the online evaluation configuration. (pattern: <code>arn:aws[a-zA-Z-]*:bedrock-agentcore:[a-z0-9-]+:[0-9]{12}:online-evaluation-config/[a-zA-Z][a-zA-Z0-9-_]{0,99}-[a-zA-Z0-9]{10}</code>)
online_evaluation_config_idstringThe unique identifier of the online evaluation configuration. (pattern: <code>[a-zA-Z][a-zA-Z0-9-_]{0,99}-[a-zA-Z0-9]{10}</code>)
online_evaluation_config_namestringThe name of the online evaluation configuration. (pattern: <code>[a-zA-Z][a-zA-Z0-9_]{0,47}</code>)
output_configobjectThe configuration that specifies where evaluation results should be written for monitoring and analysis.
ruleobjectThe evaluation rule that defines sampling configuration, filtering criteria, and session detection settings for online evaluation.
statusstringThe status of the online evaluation configuration. (ACTIVE, CREATING, CREATE_FAILED, UPDATING, UPDATE_FAILED, DELETING, ERROR)
updated_atstring (date-time)The timestamp when the online evaluation configuration was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_online_evaluation_configselectonline_evaluation_config_id, regionRetrieves detailed information about an online evaluation configuration, including its rules, data sources, evaluators, and execution status.
list_online_evaluation_configsselectregionnextToken, maxResultsLists all online evaluation configurations in the account, providing summary information about each configuration's status and settings.
create_online_evaluation_configinsertregion, onlineEvaluationConfigName, rule, dataSourceConfig, evaluationExecutionRoleArn, enableOnCreateCreates an online evaluation configuration for continuous monitoring of agent performance. Online evaluation automatically samples live traffic from CloudWatch logs at specified rates and applies evaluators to assess agent quality in production.
update_online_evaluation_configupdateonline_evaluation_config_id, regionUpdates an online evaluation configuration's settings, including rules, data sources, evaluators, and execution status. Changes take effect immediately for ongoing evaluations.
delete_online_evaluation_configdeleteonline_evaluation_config_id, regionDeletes an online evaluation configuration and stops any ongoing evaluation processes associated with it.

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.

NameDatatypeDescription
online_evaluation_config_idstringThe unique identifier of the online evaluation configuration to delete.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of online evaluation configurations to return in a single response.
nextTokenstringThe pagination token from a previous request to retrieve the next page of results.

SELECT examples

Retrieves detailed information about an online evaluation configuration, including its rules, data sources, evaluators, and execution status.

SELECT
clustering_config,
created_at,
data_source_config,
description,
evaluation_execution_role_arn,
evaluators,
execution_status,
failure_reason,
insights,
online_evaluation_config_arn,
online_evaluation_config_id,
online_evaluation_config_name,
output_config,
rule,
status,
updated_at
FROM aws.bedrock_agentcore_control.online_evaluation_configs
WHERE online_evaluation_config_id = '{{ online_evaluation_config_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an online evaluation configuration for continuous monitoring of agent performance. Online evaluation automatically samples live traffic from CloudWatch logs at specified rates and applies evaluators to assess agent quality in production.

INSERT INTO aws.bedrock_agentcore_control.online_evaluation_configs (
clientToken,
onlineEvaluationConfigName,
description,
rule,
dataSourceConfig,
evaluators,
insights,
clusteringConfig,
evaluationExecutionRoleArn,
enableOnCreate,
tags,
region
)
SELECT
'{{ clientToken }}',
'{{ onlineEvaluationConfigName }}' /* required */,
'{{ description }}',
'{{ rule }}' /* required */,
'{{ dataSourceConfig }}' /* required */,
'{{ evaluators }}',
'{{ insights }}',
'{{ clusteringConfig }}',
'{{ evaluationExecutionRoleArn }}' /* required */,
{{ enableOnCreate }} /* required */,
'{{ tags }}',
'{{ region }}'
RETURNING
created_at,
execution_status,
failure_reason,
online_evaluation_config_arn,
online_evaluation_config_id,
output_config,
status
;

UPDATE examples

Updates an online evaluation configuration's settings, including rules, data sources, evaluators, and execution status. Changes take effect immediately for ongoing evaluations.

UPDATE aws.bedrock_agentcore_control.online_evaluation_configs
SET
clientToken = '{{ clientToken }}',
description = '{{ description }}',
rule = '{{ rule }}',
dataSourceConfig = '{{ dataSourceConfig }}',
evaluators = '{{ evaluators }}',
insights = '{{ insights }}',
clusteringConfig = '{{ clusteringConfig }}',
evaluationExecutionRoleArn = '{{ evaluationExecutionRoleArn }}',
executionStatus = '{{ executionStatus }}'
WHERE
online_evaluation_config_id = '{{ online_evaluation_config_id }}' --required
AND region = '{{ region }}' --required
RETURNING
execution_status,
failure_reason,
online_evaluation_config_arn,
online_evaluation_config_id,
status,
updated_at;

DELETE examples

Deletes an online evaluation configuration and stops any ongoing evaluation processes associated with it.

DELETE FROM aws.bedrock_agentcore_control.online_evaluation_configs
WHERE online_evaluation_config_id = '{{ online_evaluation_config_id }}' --required
AND region = '{{ region }}' --required
;