public class MetricsUtil extends Object
Constructor and Description |
---|
MetricsUtil() |
Modifier and Type | Method and Description |
---|---|
static List<MetricsDuration> |
getAllDurations(String parentLogChannelId) |
static List<MetricsDuration> |
getDuration(String logChannelId,
Metrics metric)
Calculates the durations between the START and STOP snapshots for a given metric description
|
static List<MetricsDuration> |
getDurations(String logChannelId)
Calculates the durations between the START and STOP snapshots per metric description and subject (if any)
|
static Long |
getResult(Metrics metric) |
static List<MetricsSnapshotInterface> |
getResultsList(Metrics metric) |
public static List<MetricsDuration> getDuration(String logChannelId, Metrics metric)
logChannelId
- the id of the log channel to investigatemetricsCode
- the metric codepublic static List<MetricsDuration> getAllDurations(String parentLogChannelId)
public static List<MetricsDuration> getDurations(String logChannelId)
logChannelId
- the id of the log channel to investigatepublic static List<MetricsSnapshotInterface> getResultsList(Metrics metric)