Class: AWSCDK::BedrockAgentCore::CfnOnlineEvaluationConfig::SamplingConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock_agent_core/cfn_online_evaluation_config.rb

Overview

The configuration that controls what percentage of agent traces are sampled for evaluation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sampling_percentage:) ⇒ SamplingConfigProperty

Returns a new instance of SamplingConfigProperty.

Parameters:

  • sampling_percentage (Numeric)

    The percentage of agent traces to sample for evaluation.



1073
1074
1075
1076
# File 'bedrock_agent_core/cfn_online_evaluation_config.rb', line 1073

def initialize(sampling_percentage:)
  @sampling_percentage = sampling_percentage
  Jsii::Type.check_type(@sampling_percentage, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "samplingPercentage")
end

Instance Attribute Details

#sampling_percentageNumeric (readonly)

The percentage of agent traces to sample for evaluation.



1082
1083
1084
# File 'bedrock_agent_core/cfn_online_evaluation_config.rb', line 1082

def sampling_percentage
  @sampling_percentage
end

Class Method Details

.jsii_propertiesObject



1084
1085
1086
1087
1088
# File 'bedrock_agent_core/cfn_online_evaluation_config.rb', line 1084

def self.jsii_properties
  {
    :sampling_percentage => "samplingPercentage",
  }
end

Instance Method Details

#to_jsiiObject



1090
1091
1092
1093
1094
1095
1096
# File 'bedrock_agent_core/cfn_online_evaluation_config.rb', line 1090

def to_jsii
  result = {}
  result.merge!({
    "samplingPercentage" => @sampling_percentage,
  })
  result.compact
end