Class WhoMetrics

java.lang.Object
org.jwcarman.who.autoconfigure.WhoMetrics

public final class WhoMetrics extends Object
Counts who's events as Micrometer meters: "who.sign-ins", "who.sign-outs", "who.sessions.ended", "who.credentials.added" and "who.credentials.revoked". Every tag value comes from one of who's enums; no address or id is ever a tag. Other events are ignored. A registry that fails is logged and never keeps the event from other listeners.
  • Field Details

  • Constructor Details

    • WhoMetrics

      public WhoMetrics(io.micrometer.core.instrument.MeterRegistry registry)
      Creates the listener.
      Parameters:
      registry - where the counters are registered
  • Method Details

    • on

      @EventListener public void on(WhoEvent event)
      Counts one event.
      Parameters:
      event - the event who published