Package org.pentaho.di.core.metrics
Class MetricsUtil
java.lang.Object
org.pentaho.di.core.metrics.MetricsUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Long
static List<MetricsSnapshotInterface>
getResultsList
(Metrics metric)
-
Constructor Details
-
MetricsUtil
public MetricsUtil()
-
-
Method Details
-
getDuration
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
-
getDurations
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
-
getResult
-