Class Apdex.Builder

  • Enclosing class:
    Apdex

    public static class Apdex.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • filterText

        public Apdex.Builder filterText​(String filterText)
        The string that defines the Span Filter expression.
        Parameters:
        filterText - the value to set
        Returns:
        this builder
      • priority

        public Apdex.Builder priority​(Integer priority)
        The priority controls the order in which multiple rules in a rule set are applied.

        Lower values indicate higher priorities. Rules with higher priority are applied first, and once a match is found, the rest of the rules are ignored. Rules within the same rule set cannot have the same priority.

        Parameters:
        priority - the value to set
        Returns:
        this builder
      • isEnabled

        public Apdex.Builder isEnabled​(Boolean isEnabled)
        Specifies whether the Apdex score should be computed for spans matching the rule.

        This can be used to disable Apdex score for spans that do not need or require it. The default is “true”.

        Parameters:
        isEnabled - the value to set
        Returns:
        this builder
      • satisfiedResponseTime

        public Apdex.Builder satisfiedResponseTime​(Integer satisfiedResponseTime)
        The maximum response time in milliseconds that is considered “satisfactory” for the end user.
        Parameters:
        satisfiedResponseTime - the value to set
        Returns:
        this builder
      • toleratingResponseTime

        public Apdex.Builder toleratingResponseTime​(Integer toleratingResponseTime)
        The maximum response time in milliseconds that is considered “tolerable” for the end user.

        A response time beyond this threshold is considered “frustrating”. This value cannot be lower than “satisfiedResponseTime”.

        Parameters:
        toleratingResponseTime - the value to set
        Returns:
        this builder
      • isApplyToErrorSpans

        public Apdex.Builder isApplyToErrorSpans​(Boolean isApplyToErrorSpans)
        Specifies whether an Apdex score should be computed for error spans.

        Setting it to “true” means that the Apdex score is computed in the usual way. Setting it to “false” skips the Apdex computation and sets the Apdex score to “frustrating” regardless of the configured thresholds. The default is “false”.

        Parameters:
        isApplyToErrorSpans - the value to set
        Returns:
        this builder
      • displayName

        public Apdex.Builder displayName​(String displayName)
        The name by which a configuration entity is displayed to the end user.
        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • build

        public Apdex build()