Interface SamplingStatisticsDocument.Builder

    • Method Detail

      • ruleName

        SamplingStatisticsDocument.Builder ruleName​(String 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.
      • clientID

        SamplingStatisticsDocument.Builder clientID​(String clientID)

        A unique identifier for the service in hexadecimal.

        Parameters:
        clientID - A unique identifier for the service in hexadecimal.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • timestamp

        SamplingStatisticsDocument.Builder timestamp​(Instant timestamp)

        The current time.

        Parameters:
        timestamp - The current time.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • requestCount

        SamplingStatisticsDocument.Builder requestCount​(Integer requestCount)

        The number of requests that matched the rule.

        Parameters:
        requestCount - The number of requests that matched the rule.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sampledCount

        SamplingStatisticsDocument.Builder sampledCount​(Integer sampledCount)

        The number of requests recorded.

        Parameters:
        sampledCount - The number of requests recorded.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • borrowCount

        SamplingStatisticsDocument.Builder borrowCount​(Integer borrowCount)

        The number of requests recorded with borrowed reservoir quota.

        Parameters:
        borrowCount - The number of requests recorded with borrowed reservoir quota.
        Returns:
        Returns a reference to this object so that method calls can be chained together.