Class: AWSCDK::BedrockAgentCore::CfnOnlineEvaluationConfig::SamplingConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CfnOnlineEvaluationConfig::SamplingConfigProperty
- 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
-
#sampling_percentage ⇒ Numeric
readonly
The percentage of agent traces to sample for evaluation.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(sampling_percentage:) ⇒ SamplingConfigProperty
constructor
A new instance of SamplingConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(sampling_percentage:) ⇒ SamplingConfigProperty
Returns a new instance of SamplingConfigProperty.
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_percentage ⇒ Numeric (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_properties ⇒ Object
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_jsii ⇒ Object
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 |