Interface SamplingRuleUpdate.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<SamplingRuleUpdate.Builder,,- SamplingRuleUpdate> - SdkBuilder<SamplingRuleUpdate.Builder,,- SamplingRuleUpdate> - SdkPojo
- Enclosing class:
- SamplingRuleUpdate
- 
Method SummaryModifier and TypeMethodDescriptionattributes(Map<String, String> attributes) Matches attributes derived from the request.The percentage of matching requests to instrument, after the reservoir is exhausted.Matches the hostname from a request URL.httpMethod(String httpMethod) Matches the HTTP method of a request.The priority of the sampling rule.reservoirSize(Integer reservoirSize) A fixed number of matching requests to instrument per second, prior to applying the fixed rate.resourceARN(String resourceARN) Matches the ARN of the Amazon Web Services resource on which the service runs.The ARN of the sampling rule.The name of the sampling rule.default SamplingRuleUpdate.BuildersamplingRateBoost(Consumer<SamplingRateBoost.Builder> samplingRateBoost) Specifies the multiplier applied to the base sampling rate.samplingRateBoost(SamplingRateBoost samplingRateBoost) Specifies the multiplier applied to the base sampling rate.serviceName(String serviceName) Matches thenamethat the service uses to identify itself in segments.serviceType(String serviceType) Matches theoriginthat the service uses to identify its type in segments.Matches the path from a request URL.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
ruleNameThe name of the sampling rule. Specify a rule by either name or ARN, but not both. - Parameters:
- ruleName- The name of the sampling rule. Specify a rule by either name or ARN, but not both.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
ruleARNThe ARN of the sampling rule. Specify a rule by either name or ARN, but not both. - Parameters:
- ruleARN- The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
resourceARNMatches the ARN of the Amazon Web Services resource on which the service runs. - Parameters:
- resourceARN- Matches the ARN of the Amazon Web Services resource on which the service runs.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
priorityThe priority of the sampling rule. - Parameters:
- priority- The priority of the sampling rule.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
fixedRateThe percentage of matching requests to instrument, after the reservoir is exhausted. - Parameters:
- fixedRate- The percentage of matching requests to instrument, after the reservoir is exhausted.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
reservoirSizeA fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively. - Parameters:
- reservoirSize- A fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
hostMatches the hostname from a request URL. - Parameters:
- host- Matches the hostname from a request URL.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
serviceNameMatches the namethat the service uses to identify itself in segments.- Parameters:
- serviceName- Matches the- namethat the service uses to identify itself in segments.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
serviceTypeMatches the originthat the service uses to identify its type in segments.- Parameters:
- serviceType- Matches the- originthat the service uses to identify its type in segments.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
httpMethodMatches the HTTP method of a request. - Parameters:
- httpMethod- Matches the HTTP method of a request.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
urlPathMatches the path from a request URL. - Parameters:
- urlPath- Matches the path from a request URL.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
attributesMatches attributes derived from the request. - Parameters:
- attributes- Matches attributes derived from the request.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
samplingRateBoostSpecifies the multiplier applied to the base sampling rate. This boost allows you to temporarily increase sampling without changing the rule's configuration. - Parameters:
- samplingRateBoost- Specifies the multiplier applied to the base sampling rate. This boost allows you to temporarily increase sampling without changing the rule's configuration.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
samplingRateBoostdefault SamplingRuleUpdate.Builder samplingRateBoost(Consumer<SamplingRateBoost.Builder> samplingRateBoost) Specifies the multiplier applied to the base sampling rate. This boost allows you to temporarily increase sampling without changing the rule's configuration. This is a convenience method that creates an instance of theSamplingRateBoost.Builderavoiding the need to create one manually viaSamplingRateBoost.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosamplingRateBoost(SamplingRateBoost).- Parameters:
- samplingRateBoost- a consumer that will call methods on- SamplingRateBoost.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
 
-