CloudWatchLogsDataSourceConfig Struct
Configuration for CloudWatch Logs data source.
Example
ts
const evaluation = new agentcore.OnlineEvaluationConfig(this, 'MyEvaluation', {
onlineEvaluationConfigName: 'my_evaluation',
evaluators: [
agentcore.EvaluatorSelector.builtin(agentcore.BuiltinEvaluator.HELPFULNESS),
agentcore.EvaluatorSelector.builtin(agentcore.BuiltinEvaluator.CORRECTNESS),
],
dataSource: agentcore.DataSourceConfig.fromCloudWatchLogs({
logGroupNames: ['/aws/bedrock-agentcore/my-agent'],
serviceNames: ['my-agent.default'],
}),
});
Properties
logGroupNamesstring[]log_group_namestyping.List[str]logGroupNamesList<String>LogGroupNamesstring[]LogGroupNames*[]*stringrequired#The list of CloudWatch log group names to monitor for agent traces.
serviceNamesstring[]service_namestyping.List[str]serviceNamesList<String>ServiceNamesstring[]ServiceNames*[]*stringrequired#The list of service names to filter traces within the specified log groups. Used to identify relevant agent sessions.
For agents hosted on AgentCore Runtime, service name follows the format: <agent-runtime-name>.<agent-runtime-endpoint-name>