Package org.pentaho.di.core.metrics
Class MetricsUtil
- java.lang.Object
-
- org.pentaho.di.core.metrics.MetricsUtil
-
public class MetricsUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description MetricsUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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 descriptionstatic List<MetricsDuration>getDurations(String logChannelId)Calculates the durations between the START and STOP snapshots per metric description and subject (if any)static LonggetResult(Metrics metric)static List<MetricsSnapshotInterface>getResultsList(Metrics metric)
-
-
-
Method Detail
-
getDuration
public static List<MetricsDuration> getDuration(String logChannelId, Metrics metric)
Calculates the durations between the START and STOP snapshots for a given metric description- Parameters:
logChannelId- the id of the log channel to investigatemetricsCode- the metric code- Returns:
- the duration in ms
-
getAllDurations
public static List<MetricsDuration> getAllDurations(String parentLogChannelId)
-
getDurations
public static List<MetricsDuration> getDurations(String logChannelId)
Calculates the durations between the START and STOP snapshots per metric description and subject (if any)- Parameters:
logChannelId- the id of the log channel to investigate- Returns:
- the duration in ms
-
getResultsList
public static List<MetricsSnapshotInterface> getResultsList(Metrics metric)
-
-