Class MetricsUtil


  • public class MetricsUtil
    extends Object
    • Constructor Detail

      • MetricsUtil

        public MetricsUtil()
    • 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 investigate
        metricsCode - the metric code
        Returns:
        the duration in ms
      • 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
      • getResult

        public static Long getResult​(Metrics metric)