Class: Aws::XRay::Types::SamplingStatisticsDocument
- Inherits:
-
Struct
- Object
- Struct
- Aws::XRay::Types::SamplingStatisticsDocument
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-xray/types.rb
Overview
When making an API call, you may pass SamplingStatisticsDocument data as a hash:
{
rule_name: "RuleName", # required
client_id: "ClientID", # required
timestamp: Time.now, # required
request_count: 1, # required
sampled_count: 1, # required
borrow_count: 1,
}
Request sampling results for a single rule from a service. Results are for the last 10 seconds unless the service has been assigned a longer reporting interval after a previous call to [GetSamplingTargets].
[1]: docs.aws.amazon.com/xray/latest/api/API_GetSamplingTargets.html
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#borrow_count ⇒ Integer
The number of requests recorded with borrowed reservoir quota.
-
#client_id ⇒ String
A unique identifier for the service in hexadecimal.
-
#request_count ⇒ Integer
The number of requests that matched the rule.
-
#rule_name ⇒ String
The name of the sampling rule.
-
#sampled_count ⇒ Integer
The number of requests recorded.
-
#timestamp ⇒ Time
The current time.
Instance Attribute Details
#borrow_count ⇒ Integer
The number of requests recorded with borrowed reservoir quota.
2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 |
# File 'lib/aws-sdk-xray/types.rb', line 2669 class SamplingStatisticsDocument < Struct.new( :rule_name, :client_id, :timestamp, :request_count, :sampled_count, :borrow_count) SENSITIVE = [] include Aws::Structure end |
#client_id ⇒ String
A unique identifier for the service in hexadecimal.
2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 |
# File 'lib/aws-sdk-xray/types.rb', line 2669 class SamplingStatisticsDocument < Struct.new( :rule_name, :client_id, :timestamp, :request_count, :sampled_count, :borrow_count) SENSITIVE = [] include Aws::Structure end |
#request_count ⇒ Integer
The number of requests that matched the rule.
2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 |
# File 'lib/aws-sdk-xray/types.rb', line 2669 class SamplingStatisticsDocument < Struct.new( :rule_name, :client_id, :timestamp, :request_count, :sampled_count, :borrow_count) SENSITIVE = [] include Aws::Structure end |
#rule_name ⇒ String
The name of the sampling rule.
2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 |
# File 'lib/aws-sdk-xray/types.rb', line 2669 class SamplingStatisticsDocument < Struct.new( :rule_name, :client_id, :timestamp, :request_count, :sampled_count, :borrow_count) SENSITIVE = [] include Aws::Structure end |
#sampled_count ⇒ Integer
The number of requests recorded.
2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 |
# File 'lib/aws-sdk-xray/types.rb', line 2669 class SamplingStatisticsDocument < Struct.new( :rule_name, :client_id, :timestamp, :request_count, :sampled_count, :borrow_count) SENSITIVE = [] include Aws::Structure end |
#timestamp ⇒ Time
The current time.
2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 |
# File 'lib/aws-sdk-xray/types.rb', line 2669 class SamplingStatisticsDocument < Struct.new( :rule_name, :client_id, :timestamp, :request_count, :sampled_count, :borrow_count) SENSITIVE = [] include Aws::Structure end |