Class BrsResponseMetricsFactory
java.lang.Object
oracle.communication.brm.charging.brs.BrsResponseMetricsFactory
This factory class provides a standardized metric for each type of source.
Currently, retries can be provided by both Coherence and WebClient (for active-active).
This factory attempts to keep things DRY.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String
protected static final String
The name of the metric for Re-trys.protected static final String
The tag name used for the ranged counter.Map to store the sources and their corresponding Distribution Summaries.protected static final String
Name of the tag to use that identifies the source.protected static final int
The threshold to use for the maximum of the ranged counter. -
Method Summary
Modifier and TypeMethodDescriptionstatic oracle.communication.brm.charging.util.misc.metrics.RangedCounterMetric
getRangedResponseCounter
(String source) Factory method to provide a Ranged Counter.static io.micrometer.core.instrument.DistributionSummary
getResponseRetryDistribution
(String source) Factory method to provide a Distribution Summary.
-
Field Details
-
BRS_TASK_RETRIES_METRIC_NAME
The name of the metric for Re-trys.- See Also:
-
BRS_TASK_RANGE_RETRIES_METRIC_NAME
- See Also:
-
SOURCE_MAP
Map to store the sources and their corresponding Distribution Summaries. -
SOURCE_TAG_NAME
Name of the tag to use that identifies the source.- See Also:
-
THRESHOLD
protected static final int THRESHOLDThe threshold to use for the maximum of the ranged counter.- See Also:
-
RANGE_METRIC_TAG_NAME
The tag name used for the ranged counter.- See Also:
-
-
Method Details
-
getResponseRetryDistribution
public static io.micrometer.core.instrument.DistributionSummary getResponseRetryDistribution(String source) Factory method to provide a Distribution Summary.- Parameters:
source
- the source where the retry occurred- Returns:
- a Distribution summary for the metric
-
getRangedResponseCounter
public static oracle.communication.brm.charging.util.misc.metrics.RangedCounterMetric getRangedResponseCounter(String source) Factory method to provide a Ranged Counter.- Parameters:
source
- the source where the retry occurred- Returns:
- a Ranged Counter for the metric
-