You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::XRay::Types::SamplingRuleWhen passing SamplingRule as input to an Aws::Client method, you can use a vanilla Hash:
{
rule_name: "RuleName",
rule_arn: "String",
resource_arn: "ResourceARN", priority: 1, fixed_rate: 1.0, reservoir_size: 1, service_name: "ServiceName", service_type: "ServiceType", host: "Host", http_method: "HTTPMethod", url_path: "URLPath", version: 1, attributes: {
"AttributeKey" => "AttributeValue",
},
}
A sampling rule that services use to decide whether to instrument a request. Rule fields can match properties of the service, or properties of a request. The service can ignore rules that don't match its properties.
Returned by:
Instance Attribute Summary collapseMatches attributes derived from the request.
The percentage of matching requests to instrument, after the reservoir is exhausted.
Matches the hostname from a request URL.
Matches the HTTP method of a request.
The priority of the sampling rule.
A fixed number of matching requests to instrument per second, prior to applying the fixed rate.
Matches the ARN of the AWS resource on which the service runs.
The ARN of the sampling rule.
The name of the sampling rule.
Matches the name
that the service uses to identify itself in segments.
Matches the origin
that the service uses to identify its type in segments.
Matches the path from a request URL.
The version of the sampling rule format (1
).
Matches attributes derived from the request.
#fixed_rate ⇒ FloatThe percentage of matching requests to instrument, after the reservoir is exhausted.
#host ⇒ StringMatches the hostname from a request URL.
#http_method ⇒ StringMatches the HTTP method of a request.
#priority ⇒ IntegerThe priority of the sampling rule.
#reservoir_size ⇒ IntegerA 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.
#resource_arn ⇒ StringMatches the ARN of the AWS resource on which the service runs.
#rule_arn ⇒ StringThe ARN of the sampling rule. Specify a rule by either name or ARN, but not both.
#rule_name ⇒ StringThe name of the sampling rule. Specify a rule by either name or ARN, but not both.
#service_name ⇒ StringMatches the name
that the service uses to identify itself in segments.
Matches the origin
that the service uses to identify its type in segments.
Matches the path from a request URL.
#version ⇒ IntegerThe version of the sampling rule format (1
).
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4