private static void buildHealthCheckStatus(final Health.Builder builder,
                                               final long sessionCount, final long ticketCount, final String msg) {
        builder
            .withDetail("sessionCount", sessionCount)
            .withDetail("ticketCount", ticketCount)
            .withDetail("message", msg);
    }
Threshold above which warnings are issued for session count.
core/cas-server-core-monitor/src/main/java/org/apereo/cas/monitor/TicketRegistryHealthIndicator.java