Interface CfnSamplingRulePropsMixin.SamplingRuleProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnSamplingRulePropsMixin.SamplingRuleProperty.Jsii$Proxy
- Enclosing class:
CfnSamplingRulePropsMixin
Rule fields can match properties of the service, or properties of a request. The service can ignore rules that don't match its properties.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.xray.*;
SamplingRuleProperty samplingRuleProperty = SamplingRuleProperty.builder()
.attributes(Map.of(
"attributesKey", "attributes"))
.fixedRate(123)
.host("host")
.httpMethod("httpMethod")
.priority(123)
.reservoirSize(123)
.resourceArn("resourceArn")
.ruleArn("ruleArn")
.ruleName("ruleName")
.serviceName("serviceName")
.serviceType("serviceType")
.urlPath("urlPath")
.version(123)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnSamplingRulePropsMixin.SamplingRulePropertystatic final classAn implementation forCfnSamplingRulePropsMixin.SamplingRuleProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectMatches attributes derived from the request.default NumberThe percentage of matching requests to instrument, after the reservoir is exhausted.default StringgetHost()Matches the hostname from a request URL.default StringMatches the HTTP method of a request.default NumberThe priority of the sampling rule.default NumberA fixed number of matching requests to instrument per second, prior to applying the fixed rate.default StringMatches the ARN of the AWS resource on which the service runs.default StringThe ARN of the sampling rule.default StringThe name of the sampling rule.default StringMatches thenamethat the service uses to identify itself in segments.default StringMatches theoriginthat the service uses to identify its type in segments.default StringMatches the path from a request URL.default NumberThe version of the sampling rule.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAttributes
Matches attributes derived from the request.Map Entries: Maximum number of 5 items.
Key Length Constraints: Minimum length of 1. Maximum length of 32.
Value Length Constraints: Minimum length of 1. Maximum length of 32.
Returns union: either Mapinvalid input: '<'String,
String> orIResolvable- See Also:
-
getFixedRate
The percentage of matching requests to instrument, after the reservoir is exhausted.- See Also:
-
getHost
Matches the hostname from a request URL.- See Also:
-
getHttpMethod
Matches the HTTP method of a request.- See Also:
-
getPriority
The priority of the sampling rule.- See Also:
-
getReservoirSize
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.
- See Also:
-
getResourceArn
Matches the ARN of the AWS resource on which the service runs.- See Also:
-
getRuleArn
The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.Specifying a sampling rule by name is recommended, as specifying by ARN will be deprecated in future.
- See Also:
-
getRuleName
The name of the sampling rule.Specify a rule by either name or ARN, but not both.
- See Also:
-
getServiceName
Matches thenamethat the service uses to identify itself in segments.- See Also:
-
getServiceType
Matches theoriginthat the service uses to identify its type in segments.- See Also:
-
getUrlPath
Matches the path from a request URL.- See Also:
-
getVersion
The version of the sampling rule.Versioncan only be set when creating a new sampling rule.- See Also:
-
builder
-