Interface Rule.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Rule.Builder,Rule>, SdkBuilder<Rule.Builder,Rule>, SdkPojo
Enclosing class:
Rule

@Mutable @NotThreadSafe public static interface Rule.Builder extends SdkPojo, CopyableBuilder<Rule.Builder,Rule>
  • Method Details

    • samplingConfig

      Rule.Builder samplingConfig(SamplingConfig samplingConfig)

      The sampling configuration that determines what percentage of agent traces to evaluate.

      Parameters:
      samplingConfig - The sampling configuration that determines what percentage of agent traces to evaluate.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • samplingConfig

      default Rule.Builder samplingConfig(Consumer<SamplingConfig.Builder> samplingConfig)

      The sampling configuration that determines what percentage of agent traces to evaluate.

      This is a convenience method that creates an instance of the SamplingConfig.Builder avoiding the need to create one manually via SamplingConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to samplingConfig(SamplingConfig).

      Parameters:
      samplingConfig - a consumer that will call methods on SamplingConfig.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • filters

      Rule.Builder filters(Collection<Filter> filters)

      The list of filters that determine which agent traces should be included in the evaluation based on trace properties.

      Parameters:
      filters - The list of filters that determine which agent traces should be included in the evaluation based on trace properties.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • filters

      Rule.Builder filters(Filter... filters)

      The list of filters that determine which agent traces should be included in the evaluation based on trace properties.

      Parameters:
      filters - The list of filters that determine which agent traces should be included in the evaluation based on trace properties.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • filters

      Rule.Builder filters(Consumer<Filter.Builder>... filters)

      The list of filters that determine which agent traces should be included in the evaluation based on trace properties.

      This is a convenience method that creates an instance of the Filter.Builder avoiding the need to create one manually via Filter.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to filters(List<Filter>).

      Parameters:
      filters - a consumer that will call methods on Filter.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • sessionConfig

      Rule.Builder sessionConfig(SessionConfig sessionConfig)

      The session configuration that defines timeout settings for detecting when agent sessions are complete and ready for evaluation.

      Parameters:
      sessionConfig - The session configuration that defines timeout settings for detecting when agent sessions are complete and ready for evaluation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sessionConfig

      default Rule.Builder sessionConfig(Consumer<SessionConfig.Builder> sessionConfig)

      The session configuration that defines timeout settings for detecting when agent sessions are complete and ready for evaluation.

      This is a convenience method that creates an instance of the SessionConfig.Builder avoiding the need to create one manually via SessionConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to sessionConfig(SessionConfig).

      Parameters:
      sessionConfig - a consumer that will call methods on SessionConfig.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: