You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::XRay::Types::SamplingStatisticsDocument

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing SamplingStatisticsDocument as input to an Aws::Client method, you can use a vanilla 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.

Instance Attribute Summary collapse

Instance Attribute Details

#borrow_count ⇒ Integer

The number of requests recorded with borrowed reservoir quota.

Returns:

  • (Integer) —

    The number of requests recorded with borrowed reservoir quota.

#client_id ⇒ String

A unique identifier for the service in hexadecimal.

Returns:

  • (String) —

    A unique identifier for the service in hexadecimal.

#request_count ⇒ Integer

The number of requests that matched the rule.

Returns:

  • (Integer) —

    The number of requests that matched the rule.

#rule_name ⇒ String

The name of the sampling rule.

Returns:

  • (String) —

    The name of the sampling rule.

#sampled_count ⇒ Integer

The number of requests recorded.

Returns:

  • (Integer) —

    The number of requests recorded.

#timestamp ⇒ Time

The current time.

Returns:

  • (Time) —

    The current time.