Class UiMonitoring

java.lang.Object
io.jmix.flowui.monitoring.UiMonitoring

public class UiMonitoring extends Object
  • Method Details

    • startTimerSample

      public static io.micrometer.core.instrument.Timer.Sample startTimerSample(io.micrometer.core.instrument.MeterRegistry meterRegistry)
    • stopDataLoaderTimerSample

      public static void stopDataLoaderTimerSample(io.micrometer.core.instrument.Timer.Sample sample, io.micrometer.core.instrument.MeterRegistry meterRegistry, DataLoaderLifeCycle lifeCycle, DataLoaderMonitoringInfo info)
    • stopViewTimerSample

      public static void stopViewTimerSample(io.micrometer.core.instrument.Timer.Sample sample, io.micrometer.core.instrument.MeterRegistry meterRegistry, ViewLifeCycle lifeCycle, @Nullable String viewId)
    • createViewTimer

      protected static io.micrometer.core.instrument.Timer createViewTimer(io.micrometer.core.instrument.MeterRegistry meterRegistry, ViewLifeCycle lifeCycle, String viewId)
    • createDataLoaderTimer

      protected static io.micrometer.core.instrument.Timer createDataLoaderTimer(io.micrometer.core.instrument.MeterRegistry meterRegistry, DataLoaderLifeCycle lifeCycle, String viewId, String loaderId)
    • canDataLoaderBeMonitored

      protected static boolean canDataLoaderBeMonitored(@Nullable DataLoaderLifeCycle lifeCycle, @Nullable DataLoaderMonitoringInfo monitoringInfo)
    • canViewBeMonitored

      protected static boolean canViewBeMonitored(@Nullable ViewLifeCycle lifeCycle, @Nullable String viewId)
    • handleNullTag

      protected static String handleNullTag(@Nullable String tag)
      Prevents null from being tag value. Actual sanity check should be performed before and prevent monitoring at all.