Class MetricsUtil

java.lang.Object
org.pentaho.di.core.metrics.MetricsUtil

public class MetricsUtil extends Object
  • Constructor Details

    • MetricsUtil

      public MetricsUtil()
  • Method Details

    • 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 investigate
      metricsCode - 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)
    • getResult

      public static Long getResult(Metrics metric)