Interface SamplingTargetDocument.Builder

  • Method Details

    • ruleName

      The name of the sampling rule.

      Parameters:
      ruleName - The name of the sampling rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fixedRate

      SamplingTargetDocument.Builder fixedRate(Double fixedRate)

      The 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.
    • reservoirQuota

      SamplingTargetDocument.Builder reservoirQuota(Integer reservoirQuota)

      The number of requests per second that X-Ray allocated for this service.

      Parameters:
      reservoirQuota - The number of requests per second that X-Ray allocated for this service.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • reservoirQuotaTTL

      SamplingTargetDocument.Builder reservoirQuotaTTL(Instant reservoirQuotaTTL)

      When the reservoir quota expires.

      Parameters:
      reservoirQuotaTTL - When the reservoir quota expires.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • interval

      The number of seconds for the service to wait before getting sampling targets again.

      Parameters:
      interval - The number of seconds for the service to wait before getting sampling targets again.
      Returns:
      Returns a reference to this object so that method calls can be chained together.