@Generated(value="OracleSDKGenerator", comments="API Version: 20210201") public final class Apdex extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
An Apdex configuration rule. The Apdex score is computed based on how the response time of a span
compares to two predefined threshold values. The first threshold defines the maximum response
time that is considered satisfactory for the end user. The second one defines the maximum
response time that is considered tolerable. All times larger than that will be considered
frustrating for the end user. An Apdex configuration rule works by selecting a subset of spans
based on a filter expression and applying the two threshold comparisons to compute a score for
each of the selected spans. The rule has an “isApplyToErrorSpans” property that controls whether
or not to compute the Apdex for spans that have been marked as errors. If this property is set to
“true”, then the Apdex score for error spans is computed in the same way as for non-error ones.
If set to “false”, then computation for error spans is skipped, and the score is set to
“frustrating” regardless of the configured thresholds. The default is “false”. The “isEnabled”
property controls whether or not an Apdex score is computed and can be used to disable Apdex
score for certain spans. The default is “true”. The “priority” property specifies the importance
of the rule within a rule set. Lower values indicate a higher priority. Rules with higher
priorities are evaluated first in the rule set. The priority of the rules must be unique within a
rule set.
Note: Objects should always be created or deserialized using the Apdex.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the Apdex.Builder
, which maintain a
set of all explicitly set fields called Apdex.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
Apdex.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
Apdex(String filterText,
Integer priority,
Boolean isEnabled,
Integer satisfiedResponseTime,
Integer toleratingResponseTime,
Boolean isApplyToErrorSpans,
String displayName)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Apdex.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getDisplayName()
The name by which a configuration entity is displayed to the end user.
|
String |
getFilterText()
The string that defines the Span Filter expression.
|
Boolean |
getIsApplyToErrorSpans()
Specifies whether an Apdex score should be computed for error spans.
|
Boolean |
getIsEnabled()
Specifies whether the Apdex score should be computed for spans matching the rule.
|
Integer |
getPriority()
The priority controls the order in which multiple rules in a rule set are applied.
|
Integer |
getSatisfiedResponseTime()
The maximum response time in milliseconds that is considered “satisfactory” for the end user.
|
Integer |
getToleratingResponseTime()
The maximum response time in milliseconds that is considered “tolerable” for the end user.
|
int |
hashCode() |
Apdex.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"filterText","priority","isEnabled","satisfiedResponseTime","toleratingResponseTime","isApplyToErrorSpans","displayName"}) public Apdex(String filterText, Integer priority, Boolean isEnabled, Integer satisfiedResponseTime, Integer toleratingResponseTime, Boolean isApplyToErrorSpans, String displayName)
public static Apdex.Builder builder()
Create a new builder.
public Apdex.Builder toBuilder()
public String getFilterText()
The string that defines the Span Filter expression.
public Integer getPriority()
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.
public Boolean getIsEnabled()
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”.
public Integer getSatisfiedResponseTime()
The maximum response time in milliseconds that is considered “satisfactory” for the end user.
public Integer getToleratingResponseTime()
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”.
public Boolean getIsApplyToErrorSpans()
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”.
public String getDisplayName()
The name by which a configuration entity is displayed to the end user.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.