Class WhoMetrics
java.lang.Object
org.jwcarman.who.autoconfigure.WhoMetrics
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringCredentials added, taggedkind.static final StringCredentials revoked, taggedkind.static final StringSessions who ended, taggedreason.static final StringCounter of ended or abandoned session records deleted.static final StringSign-in attempts, taggedmethod,outcomeandreason.static final StringSign-outs of who sessions. -
Constructor Summary
ConstructorsConstructorDescriptionWhoMetrics(io.micrometer.core.instrument.MeterRegistry registry) Creates the listener. -
Method Summary
-
Field Details
-
SIGN_INS
-
SIGN_OUTS
-
SESSIONS_ENDED
-
SESSIONS_PURGED
Counter of ended or abandoned session records deleted.- See Also:
-
CREDENTIALS_ADDED
-
CREDENTIALS_REVOKED
-
-
Constructor Details
-
WhoMetrics
public WhoMetrics(io.micrometer.core.instrument.MeterRegistry registry) Creates the listener.- Parameters:
registry- where the counters are registered
-
-
Method Details
-
on
Counts one event.- Parameters:
event- the event who published
-