public interface RequestTimingManager
| Modifier and Type | Method and Description |
|---|---|
List<RequestTiming> |
collectRequestTimings()
Return the request timings that have been collected since the last collection.
|
List<TimingMetricInfo> |
getAllTimingMetrics(String nameMatchExpression)
Return the list of all timing metrics that match the name expression.
|
List<TimingMetricInfo> |
getRequestTimingMetrics(String nameMatchExpression)
Return all the timing metrics that are currently collecting per request timings and whose name
matches the name expression.
|
boolean |
setRequestTimingCollection(Class<?> cls,
String name,
int collectionCount)
Set request timing on for a metric matching the class and name.
|
boolean |
setRequestTimingCollection(String metricName,
int collectionCount)
Set request timing on for a metric matching the name.
|
List<TimingMetricInfo> |
setRequestTimingCollectionUsingMatch(String nameMatchExpression,
int collectionCount)
Set request timing on all the timed metrics whose name starts with a given prefix.
|
List<RequestTiming> collectRequestTimings()
List<TimingMetricInfo> getRequestTimingMetrics(String nameMatchExpression)
If the name match expression is null or empty then all timing metrics are returned.
These are TimingMetric that have TimedMetric.getRequestTimingCollection()
greater than 0.
// starts with web.
"web.*"
// end with resource
"*resource"
// starts with web. and contains customer
"web.*customer*"
// starts with web. and contains customer and ends with resource
"web.*customer*resource"
nameMatchExpression - the expression used to match/filter metric names. Null or empty means match all.List<TimingMetricInfo> getAllTimingMetrics(String nameMatchExpression)
If the name match expression is null or empty then all timing metrics are returned.
// starts with web.
"web.*"
// end with resource
"*resource"
// starts with web. and contains customer
"web.*customer*"
// starts with web. and contains customer and ends with resource
"web.*customer*resource"
nameMatchExpression - the expression used to match/filter metric names. Null or empty means match all.boolean setRequestTimingCollection(String metricName, int collectionCount)
collectionCount - the number of requests to collect request timings forboolean setRequestTimingCollection(Class<?> cls, String name, int collectionCount)
collectionCount - the number of requests to collect request timings forList<TimingMetricInfo> setRequestTimingCollectionUsingMatch(String nameMatchExpression, int collectionCount)
If for example all the web endpoints have a prefix of "web." then these can all be set to collect say 10 requests.
// starts with web.
"web.*"
// end with resource
"*resource"
// starts with web. and contains customer
"web.*customer*"
// starts with web. and contains customer and ends with resource
"web.*customer*resource"
nameMatchExpression - The expression used to match timing metricscollectionCount - The number of requests to collectCopyright © 2019. All rights reserved.