Package com.oracle.bmc.apmconfig.model
Class Apdex.Builder
- java.lang.Object
-
- com.oracle.bmc.apmconfig.model.Apdex.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Apdex
build()
Apdex.Builder
copy(Apdex model)
Apdex.Builder
displayName(String displayName)
The name by which a configuration entity is displayed to the end user.Apdex.Builder
filterText(String filterText)
The string that defines the Span Filter expression.Apdex.Builder
isApplyToErrorSpans(Boolean isApplyToErrorSpans)
Specifies whether an Apdex score should be computed for error spans.Apdex.Builder
isEnabled(Boolean isEnabled)
Specifies whether the Apdex score should be computed for spans matching the rule.Apdex.Builder
priority(Integer priority)
The priority controls the order in which multiple rules in a rule set are applied.Apdex.Builder
satisfiedResponseTime(Integer satisfiedResponseTime)
The maximum response time in milliseconds that is considered “satisfactory” for the end user.Apdex.Builder
toleratingResponseTime(Integer toleratingResponseTime)
The maximum response time in milliseconds that is considered “tolerable” for the end user.
-
-
-
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()
-
copy
public Apdex.Builder copy(Apdex model)
-
-